From 0270a28181a3f14468bed7bdc6009544524d4752 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Mon, 26 Jul 2010 11:38:25 +0200 Subject: [PATCH] Ewmh: Improve ewmh_send_message --- src/ewmh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ewmh.c b/src/ewmh.c index fcc7015..c40f2a3 100644 --- a/src/ewmh.c +++ b/src/ewmh.c @@ -152,7 +152,8 @@ ewmh_send_message(Window d, Window w, char *atom, long d0, long d1, long d2, lon e.data.l[3] = d3; e.data.l[4] = d4; - XSendEvent(dpy, d, False, NoEventMask, (XEvent*)&e); + XSendEvent(dpy, d, False, (d4) ? (SubstructureRedirectMask | SubstructureNotifyMask) : NoEventMask, (XEvent*)&e); + XSync(dpy, False); return; }