26 Apr
2025
26 Apr
'25
5:14 a.m.
If ClipCursor is called while the seat doesn't have a pointer and the call qualifies for locking the pointer, it would have tried to lock a null wl_pointer. For example, I'm launching a fullscreen application (which causes ClipCursor calls on startup) in a headless compositor before I launch my virtual keyboard/pointer client. While the pointer is deinitialized and there cannot be a focused hwnd, the cursor wl_surface will not be set, making it qualify for pointer locking. -- v2: winewayland: Require wl_pointer for pointer constraints. https://gitlab.winehq.org/wine/wine/-/merge_requests/7857