PointerLock + dirty exit can result in mouse permanently trapped in dead window
Bug #1791549 reported by
vans163
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xorg Xserver VESA |
New
|
Undecided
|
Unassigned |
Bug Description
When you use X11 pointer lock, XGrabPointer, and the entire app abruptly terminates, either by a kill, exit, segfault, etc. You have a chance to end up in a stuck position where the window is still drawn on Xorg and your mouse cursor is trapped inside it, but the app is dead (does not appear in ps aux), and the window itself is also non-existant yet its visible.
Some kinda race condition most likely.
There is a remedy to it, and simply executing xinput kinda refreshes Xorg windows and makes the window finally terminate.
X.Org X Server 1.19.2 on Nvidia GPU + Nvidia Driver.
To post a comment you must log in.