We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b2c655 commit 1a28d77Copy full SHA for 1a28d77
src/ImGui.NET.SampleProgram/SampleWindow.cs
@@ -319,7 +319,7 @@ private unsafe void UpdateImGuiInput(IO io)
319
MouseState cursorState = Mouse.GetCursorState();
320
MouseState mouseState = Mouse.GetState();
321
322
- if (_nativeWindow.Bounds.Contains(cursorState.X, cursorState.Y))
+ if (_nativeWindow.Focused)
323
{
324
Point windowPoint = _nativeWindow.PointToClient(new Point(cursorState.X, cursorState.Y));
325
io.MousePosition = new System.Numerics.Vector2(windowPoint.X / io.DisplayFramebufferScale.X, windowPoint.Y / io.DisplayFramebufferScale.Y);
0 commit comments