|
|
@ -267,12 +267,14 @@ static void xwm_selection_set_owner(struct wlr_xwm_selection *selection,
|
|
|
|
selection->window,
|
|
|
|
selection->window,
|
|
|
|
selection->atom,
|
|
|
|
selection->atom,
|
|
|
|
XCB_TIME_CURRENT_TIME);
|
|
|
|
XCB_TIME_CURRENT_TIME);
|
|
|
|
|
|
|
|
xcb_flush(selection->xwm->xcb_conn);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (selection->owner == selection->window) {
|
|
|
|
if (selection->owner == selection->window) {
|
|
|
|
xcb_set_selection_owner(selection->xwm->xcb_conn,
|
|
|
|
xcb_set_selection_owner(selection->xwm->xcb_conn,
|
|
|
|
XCB_WINDOW_NONE,
|
|
|
|
XCB_WINDOW_NONE,
|
|
|
|
selection->atom,
|
|
|
|
selection->atom,
|
|
|
|
selection->timestamp);
|
|
|
|
selection->timestamp);
|
|
|
|
|
|
|
|
xcb_flush(selection->xwm->xcb_conn);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|