diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index 726eef4f..1fd2a58b 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -1145,7 +1145,9 @@ void WindowImplX11::setMouseCursorGrabbed(bool grabbed) } else { + // Release the cursor from the window and disable cursor grabbing XUngrabPointer(m_display, CurrentTime); + m_cursorGrabbed = false; } }