Revert focus to pointer location when ui is closed

This commit is contained in:
dec05eba
2024-11-02 23:27:28 +01:00
parent b35de8332d
commit 6e91159ccf

View File

@@ -527,7 +527,7 @@ namespace gsr {
// TODO: This breaks global hotkeys
//XGrabKeyboard(display, window->get_system_handle(), True, GrabModeAsync, GrabModeAsync, CurrentTime);
XSetInputFocus(display, window->get_system_handle(), RevertToParent, CurrentTime);
XSetInputFocus(display, window->get_system_handle(), RevertToPointerRoot, CurrentTime);
XFlush(display);
//window->set_fullscreen(true);