[Xfce4-commits] [xfce/xfwm4] 05/08: Flush display to catch possible errors
noreply at xfce.org
noreply at xfce.org
Mon May 15 09:09:49 CEST 2017
This is an automated email from the git hooks/post-receive script.
olivier pushed a commit to branch master
in repository xfce/xfwm4.
commit f7fe89ab59a25c6e23db56b94b6243915fd5ecdb
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Mon May 1 22:23:41 2017 +0200
Flush display to catch possible errors
Otherwise the current WM window might have vanished and we wouldn't
know.
---
src/screen.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/screen.c b/src/screen.c
index fc7c608..3cdc7cb 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -108,6 +108,7 @@ myScreenSetWMAtom (ScreenInfo *screen_info, gboolean replace_wm)
gdk_error_trap_push ();
attrs.event_mask = StructureNotifyMask;
XChangeWindowAttributes (display_info->dpy, current_wm, CWEventMask, &attrs);
+ gdk_flush ();
if (gdk_error_trap_pop ())
{
current_wm = None;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list