sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 091f580b7cb0df92f0f6e0be34b52f8abfdbe97a
parent 7251df94c15899d1260d6677b2b51f5e6571b203
Author: Nick Diego Yamane <nickdiego@igalia.com>
Date:   Thu, 16 Apr 2020 00:32:18 -0400

input/seatop_default: properly notify pointer leave

Currently, clients receive wl_data_device::leave events only when the
pointer enters another surface, which leads to issues, such as #5220.
This happens because wlr_seat_pointer_notify_enter() is called when
handling motion events only for non-NULL surfaces.

Fixes #5220

Diffstat:
Msway/input/seatop_default.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c @@ -219,6 +219,7 @@ static void cursor_do_rebase(struct sway_cursor *cursor, uint32_t time_msec, } if (surface == NULL) { + wlr_seat_pointer_notify_enter(wlr_seat, NULL, 0, 0); wlr_seat_pointer_clear_focus(wlr_seat); } }