Commit 45f5e536 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot

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.
parent 324d8465
Pipeline #56584 passed with stages
in 1 minute and 56 seconds
......@@ -1152,7 +1152,9 @@ weston_seat_set_selection(struct weston_seat *seat,
seat->selection_data_source = source;
seat->selection_serial = serial;
source->set_selection = true;
if (source)
source->set_selection = true;
if (keyboard)
focus = keyboard->focus;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment