Fix a crash when closing an X11 window with a selection

This was caused by weston_wm_handle_xfixes_selection_notify() calling
weston_seat_set_selection() with a NULL source, apparently only
sometimes when closing an Xwayland window.
dev
Emmanuel Gil Peyrot 5 years ago
parent 324d846567
commit 45f5e536ec
  1. 2
      libweston/data-device.c

@ -1152,6 +1152,8 @@ weston_seat_set_selection(struct weston_seat *seat,
seat->selection_data_source = source;
seat->selection_serial = serial;
if (source)
source->set_selection = true;
if (keyboard)

Loading…
Cancel
Save