Native Wayland clients (e.g. plan9port acme/devdraw) warp the pointer by locking it via zwp_pointer_constraints_v1, setting a cursor_position_hint, then immediately destroying the lock. The compositor is expected to warp the cursor to the hint on unlock. Our handler just activated the constraint and ignored the hint. Now we listen for the constraint destroy event and warp the cursor to the hint position (converted from surface-local to global coordinates). |
||
|---|---|---|
| .. | ||
| wayland | ||
| x11 | ||
| backend.h | ||
| backend_types.h | ||
| wm_backend.c | ||