mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 21:15:59 +01:00
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.
This commit is contained in:
parent
2827a9554c
commit
2118a3ce47
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue