summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2015-01-20 21:04:19 +0100
committerOlivier Fourdan <fourdan@xfce.org>2015-01-20 21:41:40 +0100
commitf73877deadf0c5b7ec0fb80909a10073041efbb8 (patch)
tree5b314f081b43d6851906e9ccdb38f54c62edf4b9
parent5c1c8ca7216cf2fd968fb60775a45358e3192d1d (diff)
downloadxfwm4-f73877deadf0c5b7ec0fb80909a10073041efbb8.tar.gz
Do not setup the XSync alarm without a counter
Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
-rw-r--r--src/moveresize.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/moveresize.c b/src/moveresize.c
index 53eb44325..0270445b3 100644
--- a/src/moveresize.c
+++ b/src/moveresize.c
@@ -1737,7 +1737,10 @@ clientResize (Client * c, int handle, XEvent * ev)
FLAG_UNSET (c->xfwm_flags, XFWM_FLAG_SAVED_POS);
#ifdef HAVE_XSYNC
- clientCreateXSyncAlarm (c);
+ if (c->xsync_counter)
+ {
+ clientCreateXSyncAlarm (c);
+ }
#endif /* HAVE_XSYNC */
FLAG_SET (c->xfwm_flags, XFWM_FLAG_MOVING_RESIZING);
@@ -1772,7 +1775,10 @@ clientResize (Client * c, int handle, XEvent * ev)
}
#ifdef HAVE_XSYNC
- clientDestroyXSyncAlarm (c);
+ if (c->xsync_counter)
+ {
+ clientDestroyXSyncAlarm (c);
+ }
#endif /* HAVE_XSYNC */
clientReconfigure (c, NO_CFG_FLAG);