mirror of
https://github.com/SFML/SFML.git
synced 2025-01-31 21:55:13 +08:00
Fixed setMouseCursorGrabbed
This commit is contained in:
parent
9029118536
commit
0535e322d4
@ -1145,7 +1145,9 @@ void WindowImplX11::setMouseCursorGrabbed(bool grabbed)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Release the cursor from the window and disable cursor grabbing
|
||||||
XUngrabPointer(m_display, CurrentTime);
|
XUngrabPointer(m_display, CurrentTime);
|
||||||
|
m_cursorGrabbed = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user