When using an app like Xonotic/Nexuiz, which uses a locked cursor, closing the app results in the cursor still being frozen even after I hold Escape. Opening and closing the ksmserver logout greeter seems to unfreeze the pointer.
Are these XWayland applications?
(In reply to Martin Flöser from comment #1) > Are these XWayland applications? Yes, the apps I have tried this on are most likely using XWayland. Could be wrong though.
> Yes, the apps I have tried this on are most likely using XWayland. Could be > wrong though. My theory is that the pointer is after ending on another XWayland window and XWayland doesn't remove the lock. That's something I experienced myself a few times without finding really a pattern. But your bug report helped me get this idea.
I can confirm this issue, on Archlinux with Plasma 5.12.0. In my case however, the cursor is unfrozen after holding Escape for 3 seconds. It only happens when I run Xonotic through XWayland. When Xonotic uses the SDL Wayland backend (SDL_VIDEODRIVER=wayland), the cursor is unfrozen as expected when closing the app. However, with the game Neverball, pressing Escape in-game pauses the game (but doesn't close it) and the cursor remains frozen, with both the X11 and Wayland SDL backends.
Can reproduce cursor freeze in VirtualBox VirtualBox launched with QT_QPA_PLATFORM=xcb option virtualbox 5.2.12-1 Plasma: 5.12.5 Apps: 18.04.0 Frameworks: 5.46.0 Qt: 5.10.1 Kernel: 4.14.41-1-MANJARO OS: Netrunner Rolling Video: Intel 4400 Driver: xf86-video-intel 1:2.99.917+831+ge7bfc906-1 Screen: 1600x900 wayland-protocols 1.13-1 wayland 1.14.0-1
Potential fix: https://phabricator.kde.org/D13466
Git commit 2694839099c3a0e9da3682569e1bd569247c3ae8 by Roman Gilg. Committed on 11/06/2018 at 20:46. Pushed by romangilg into branch 'master'. Remove pointer constraint on resource unbind Summary: A client might delete its pointer lock/confinement object. This is supposed to directly remove the pointer lock/confinement in KWin, but did not explicitly until now. Test Plan: Tested manually with Neverball, Nexuiz and the new pointer constraints test application. The pointer constraints autotest is also appended. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, graesslin, kwin Tags: #kwin Maniphest Tasks: T8923 Differential Revision: https://phabricator.kde.org/D13466 M +42 -0 autotests/integration/pointer_constraints_test.cpp M +1 -1 input.cpp M +6 -3 pointer_input.cpp M +3 -1 pointer_input.h https://commits.kde.org/kwin/2694839099c3a0e9da3682569e1bd569247c3ae8
*** Bug 398421 has been marked as a duplicate of this bug. ***
Reopening - bug is reproducible in duplicate
Closing again. The other bug report is on 5.13. The patch lands in 5.14.