changeset 3197:0fd82ca59a03

Fixed call order: Sync before calling a hook
author unexist
date Sun, 25 Mar 2012 18:43:41 +0200
parents 60af832fd27d
children 8571a68d0fa8
files src/subtle/client.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/client.c	Thu Mar 22 16:16:07 2012 +0100
+++ b/src/subtle/client.c	Sun Mar 25 18:43:41 2012 +0200
@@ -1125,11 +1125,11 @@
           subEwmhSetCardinals(c->win, SUB_EWMH_SUBTLE_CLIENT_GRAVITY,
             (long *)&c->gravityid, 1);
 
+          XSync(subtle->dpy, False); ///< Sync before going on
+
           /* Hook: Gravity */
           subHookCall((SUB_HOOK_TYPE_CLIENT|SUB_HOOK_ACTION_GRAVITY),
             (void *)c);
-
-          XSync(subtle->dpy, False); ///< Sync all changes
         }
     }
 } /* }}} */