diff options
author | Tudor Brindus <me@tbrindus.ca> | 2021-02-13 00:22:36 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-15 13:50:14 +0100 |
commit | 2118a3ce47951352ee88bf475124988723d2d20a (patch) | |
tree | c3785a581c1932b95b2232d7b6fdea48ce3602fe /xwayland/selection | |
parent | 2827a9554c8711fe65be7e202e25a6b795c40a9e (diff) |
xwayland/selection: flush connection after changing xwm selection owner
This was the actual underlying cause of #2192; we were not getting the
XFIXES_SELECTION_NOTIFY event in time.
Diffstat (limited to 'xwayland/selection')
-rw-r--r-- | xwayland/selection/selection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xwayland/selection/selection.c b/xwayland/selection/selection.c index 9cb8c455..26817fbb 100644 --- a/xwayland/selection/selection.c +++ b/xwayland/selection/selection.c @@ -267,12 +267,14 @@ static void xwm_selection_set_owner(struct wlr_xwm_selection *selection, selection->window, selection->atom, XCB_TIME_CURRENT_TIME); + xcb_flush(selection->xwm->xcb_conn); } else { if (selection->owner == selection->window) { xcb_set_selection_owner(selection->xwm->xcb_conn, XCB_WINDOW_NONE, selection->atom, selection->timestamp); + xcb_flush(selection->xwm->xcb_conn); } } } |