Skip to content

Commit 05a8796

Browse files
committed
Fix wayland.
1 parent 5c2dd4f commit 05a8796

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/OpenTK.Windowing.Desktop/NativeWindow.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,8 +1025,6 @@ public unsafe NativeWindow(NativeWindowSettings settings)
10251025

10261026
GLFW.SetWindowSizeLimits(WindowPtr, _minimumClientSize?.X ?? GLFW.DontCare, _minimumClientSize?.Y ?? GLFW.DontCare, _maximumClientize?.X ?? GLFW.DontCare, _maximumClientize?.Y ?? GLFW.DontCare);
10271027

1028-
GLFW.GetWindowPos(WindowPtr, out var x, out var y);
1029-
10301028
GLFW.GetCursorPos(WindowPtr, out var mousex, out var mousey);
10311029
_lastReportedMousePos = new Vector2((float)mousex, (float)mousey);
10321030
MouseState.Position = _lastReportedMousePos;

0 commit comments

Comments
 (0)