SUMMARY *** I'm running an application that disables the cursor on startup through the GLFW call: ``` glfwSetInputMode(g_window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); ``` If I switch window using alt+tab the cursor remains disabled, the only choice I have to enable it back is to kill the application that disabled it. *** STEPS TO REPRODUCE 1. Run any application that disables the cursor 2. Alt+tab to another window 3. The cursor is still disabled! OBSERVED RESULT The cursor remains disabled after switching window through alt+tab. EXPECTED RESULT The cursor should appear back... SOFTWARE/OS VERSIONS Manjaro Linux 21.2.4 KDE ADDITIONAL INFORMATION I don't know if it can be of any interest, but I'm using multiple monitors (3 monitors right now). I'm not sure if this is a bug or an expected behavior, however this is really unhandy when debugging GLFW applications (games) using an IDE. In this situation I used to alt+tab frequently to switch from the window to the code, put breakpoints, interact with IDE's UI and having the cursor disabled doesn't permit me to do nearly anything.
I've made a minimalistic C++ application that grabs the cursor (through GLFW) and then goes to sleep(100) after some iterations. If I alt+tab the application the cursor does not get ungrabbed.
Are you running X11 or Wayland? On Wayland, it seems to work fine. Please reset the bug report status back to REPORTED after providing the requested information.
(In reply to Vlad Zahorodnii from comment #2) > Are you running X11 or Wayland? On Wayland, it seems to work fine. > > Please reset the bug report status back to REPORTED after providing the > requested information. Oh I'm sorry, this report was from a long time ago and I don't have Manjaro installed anymore. I think it was xorg though (i.e. X11). Setting the status back to REPORTED.
Okay, I cannot reproduce the issue on X11 either. Perhaps it was fixed somewhere upstream