Skip to content

Commit

Permalink
input/seatop_default: properly notify pointer leave
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nickdiego authored and emersion committed May 1, 2020
1 parent 7251df9 commit 091f580
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway/input/seatop_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 091f580

Please sign in to comment.