From 0535e322d47812f30bfd5531a382f80c853785af Mon Sep 17 00:00:00 2001 From: Franckltung Date: Tue, 1 Dec 2020 15:44:05 -0500 Subject: [PATCH] Fixed setMouseCursorGrabbed --- src/SFML/Window/Unix/WindowImplX11.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } }