[Xfce4-commits] [xfce/xfwm4] 02/04: Do not setup the XSync alarm without a counter
noreply at xfce.org
noreply at xfce.org
Tue Jan 20 21:41:47 CET 2015
This is an automated email from the git hooks/post-receive script.
olivier pushed a commit to branch master
in repository xfce/xfwm4.
commit f73877deadf0c5b7ec0fb80909a10073041efbb8
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Tue Jan 20 21:04:19 2015 +0100
Do not setup the XSync alarm without a counter
Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
src/moveresize.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/moveresize.c b/src/moveresize.c
index 53eb443..0270445 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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list