diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-12-29 20:30:49 +0100 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-12-29 20:30:49 +0100 |
commit | 41649a1f9a37379f470dad34aa81bbb13d8b70c1 (patch) | |
tree | 018572068f996b4278c58563033ce5928172e98f /xwayland | |
parent | d7cefccaeeb1a48fec41649b5b1b6dc25095e4c8 (diff) |
xwm_selection_finish: set NULL seat for xwayland
While they could eventually be split appart, the current approach could lead to
double wl_list_remove() calls on selections which is incorrect
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/selection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xwayland/selection.c b/xwayland/selection.c index 79819565..65599145 100644 --- a/xwayland/selection.c +++ b/xwayland/selection.c @@ -844,8 +844,7 @@ void xwm_selection_finish(struct wlr_xwm *xwm) { wlr_seat_set_primary_selection(xwm->seat, NULL, wl_display_next_serial(xwm->xwayland->wl_display)); } - wl_list_remove(&xwm->seat_selection.link); - wl_list_remove(&xwm->seat_primary_selection.link); + wlr_xwayland_set_seat(xwm->xwayland, NULL); } } |