From e208f8dd8c10b213ea607ad6f331495d124f9169 Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 28 Mar 2018 16:06:11 -0400 Subject: xwayland: fixes events not flushed causing issues with GTK apps --- xwayland/selection.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xwayland/selection.c') diff --git a/xwayland/selection.c b/xwayland/selection.c index 1e68c997..81b5ab81 100644 --- a/xwayland/selection.c +++ b/xwayland/selection.c @@ -326,6 +326,7 @@ static void xwm_dnd_send_enter(struct wlr_xwm *xwm) { dest->window_id, XCB_EVENT_MASK_NO_EVENT, (const char *)&event); + xcb_flush(xwm->xcb_conn); } static void xwm_dnd_send_position(struct wlr_xwm *xwm, uint32_t time, int16_t x, @@ -356,6 +357,7 @@ static void xwm_dnd_send_position(struct wlr_xwm *xwm, uint32_t time, int16_t x, dest->window_id, XCB_EVENT_MASK_NO_EVENT, (const char *)&event); + xcb_flush(xwm->xcb_conn); } static void xwm_dnd_send_drop(struct wlr_xwm *xwm, uint32_t time) { @@ -382,6 +384,7 @@ static void xwm_dnd_send_drop(struct wlr_xwm *xwm, uint32_t time) { dest->window_id, XCB_EVENT_MASK_NO_EVENT, (const char *)&event); + xcb_flush(xwm->xcb_conn); } /*static void xwm_dnd_send_finished(struct wlr_xwm *xwm) { @@ -413,6 +416,7 @@ static void xwm_dnd_send_drop(struct wlr_xwm *xwm, uint32_t time) { dest->window_id, XCB_EVENT_MASK_NO_EVENT, (const char *)&event); + xcb_flush(xwm->xcb_conn); }*/ static struct wl_array *xwm_selection_source_get_mime_types( -- cgit v1.2.3