Workaround for dragging not starting on niri

niri for some reason known only to itself does not send any pointer
leave/data device enter/data source events when it accepts a grab. The
only event it seems to send is surface enter on the drag icon surface,
and that too it sends that event much later.

Handle this bonkers behavior by retrying the sync multiple times to
detect if niri has accepted the drag or not.

Fixes #10271
This commit is contained in:
Kovid Goyal
2026-07-21 09:04:45 +05:30
parent e1414bfcdd
commit fe9828a0e4
3 changed files with 51 additions and 11 deletions

View File

@@ -184,6 +184,8 @@ Detailed list of changes
- Wayland: fix a regression in the previous release that broke window sizing on Hyprland with fractional scales and an initial specified size (:iss:`10268`)
- Wayland: Fix a regression in 0.47.3 that broke dragging on the niri compositor (:iss:`10271`)
0.48.0 [2026-07-18]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~