Skip to content

Commit 126d4c4

Browse files
committed
Remove the code of log.
1 parent 23fd3b4 commit 126d4c4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/Avalonia.X11/XI2Manager.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,6 @@ private void OnDeviceEvent(IXI2Client client, ParsedDeviceEvent ev)
284284
// As https://www.kernel.org/doc/html/latest/input/multi-touch-protocol.html says, using `screenBounds.Width` is not accurate enough.
285285
touchMajor = (touchMajorValue - touchMajorXIValuatorClassInfo.Min) /
286286
(touchMajorXIValuatorClassInfo.Max - touchMajorXIValuatorClassInfo.Min) * screenBounds.Width;
287-
288-
var windowScreenWidth = 0d;
289-
var isSameAsTouchScreen = false;
290-
if (client is IWindowImpl windowImpl)
291-
{
292-
var windowScreen = _platform.X11Screens.ScreenFromWindow(windowImpl);
293-
isSameAsTouchScreen = windowScreen == screen;
294-
windowScreenWidth = windowScreen?.Bounds.Width ?? windowScreenWidth;
295-
}
296-
297-
Console.WriteLine($"Position={ev.Position.X:0.00},{ev.Position.Y:0.00}; TouchMajor={touchMajorValue:0.00};Max={touchMajorXIValuatorClassInfo.Max:0.00};Min={touchMajorXIValuatorClassInfo.Min:0.00};ScreenWidth={screenBounds.Width};TouchWidth={touchMajor}; IsSameAsTouchScreen={isSameAsTouchScreen}; WindowScreenWidth={windowScreenWidth}\r\n");
298287
}
299288
}
300289

@@ -306,8 +295,6 @@ private void OnDeviceEvent(IXI2Client client, ParsedDeviceEvent ev)
306295
{
307296
touchMinor = (touchMinorValue - touchMinorXIValuatorClassInfo.Min) /
308297
(touchMinorXIValuatorClassInfo.Max - touchMinorXIValuatorClassInfo.Min) * screenBounds.Height;
309-
310-
Console.WriteLine($"TouchMinor={touchMinorValue:0.00};Max={touchMinorXIValuatorClassInfo.Max:0.00};Min={touchMinorXIValuatorClassInfo.Min:0.00};ScreenHeight={screenBounds.Height};TouchWidth={touchMajor};r\n");
311298
}
312299
}
313300

0 commit comments

Comments
 (0)