summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2014-03-26 22:27:25 +0800
committerRichard Grenville <[email protected]>2014-03-26 22:27:25 +0800
commit6e4f45f875ccc0f29b93b0b36ef34dfdc8f8394a (patch)
treeed79627e683c14f9e6fc4dbe3395b05a53c6c2d5 /common.h
parent224dcd29cc383a61c85140897424b07f905f2c95 (diff)
downloadtdebase-6e4f45f875ccc0f29b93b0b36ef34dfdc8f8394a.tar.gz
tdebase-6e4f45f875ccc0f29b93b0b36ef34dfdc8f8394a.zip
Misc: Add --xrender-sync{,-fence} as configuration file option
- Add --xrender-sync{,-fence} as configuration file option. - Quit on encountering invalid opacity rule. - Other small changes.
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common.h b/common.h
index d243dc077..525b9a96b 100644
--- a/common.h
+++ b/common.h
@@ -2230,6 +2230,7 @@ xr_sync_(session_t *ps, Drawable d
if (!ps->o.xrender_sync)
return;
+ XSync(ps->dpy, False);
#ifdef CONFIG_XSYNC
if (ps->o.xrender_sync_fence && ps->xsync_exists) {
// TODO: If everybody just follows the rules stated in X Sync prototype,
@@ -2243,6 +2244,8 @@ xr_sync_(session_t *ps, Drawable d
*pfence = XSyncCreateFence(ps->dpy, d, False);
if (*pfence) {
Bool triggered = False;
+ /* if (XSyncQueryFence(ps->dpy, *pfence, &triggered) && triggered)
+ XSyncResetFence(ps->dpy, *pfence); */
// The fence may fail to be created (e.g. because of died drawable)
assert(!XSyncQueryFence(ps->dpy, *pfence, &triggered) || !triggered);
XSyncTriggerFence(ps->dpy, *pfence);
@@ -2257,7 +2260,6 @@ xr_sync_(session_t *ps, Drawable d
XSyncResetFence(ps->dpy, *pfence);
}
#endif
- XSync(ps->dpy, False);
#ifdef CONFIG_GLX_SYNC
xr_glx_sync(ps, d, pfence);
#endif