aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-28 16:06:11 -0400
committeremersion <contact@emersion.fr>2018-03-28 16:06:49 -0400
commite208f8dd8c10b213ea607ad6f331495d124f9169 (patch)
treed23169778b02137dbe72796399f2ab66ca8e132b /xwayland
parentbde859452db043f4b89a66d5d035af858cb22b64 (diff)
xwayland: fixes events not flushed causing issues with GTK apps
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/selection.c4
1 files changed, 4 insertions, 0 deletions
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(