diff --git a/xwayland/selection.c b/xwayland/selection.c index a93b12416..c243aa2da 100644 --- a/xwayland/selection.c +++ b/xwayland/selection.c @@ -25,6 +25,7 @@ #include "config.h" +#include #include #include #include @@ -590,6 +591,7 @@ weston_wm_handle_selection_request(struct weston_wm *wm, weston_log_continue("property %s\n", get_atom_name(wm->conn, selection_request->property)); + assert(selection_request->requestor != wm->selection_window); wm->selection_request = *selection_request; wm->incr = 0; wm->flush_property_on_delete = 0;