summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2014-03-17 23:25:34 +0800
committerRichard Grenville <[email protected]>2014-03-17 23:25:34 +0800
commit15bde6a8f5c4dfa13da4444e25239a9de102fe0c (patch)
treeb3c8ec6c9c6fc3c9ca685c5f467af467a18165b4 /compton.h
parent53d0c5c015d438172957a1ca0f31e1fb6fa9b150 (diff)
downloadtdebase-15bde6a8f5c4dfa13da4444e25239a9de102fe0c.tar.gz
tdebase-15bde6a8f5c4dfa13da4444e25239a9de102fe0c.zip
Bug fix #181: Add --xrender-sync{,-fence}
- Add --xrender-sync{,-fence} to deal with redraw lag issue on GLX backend. --xrender-sync-fence requires a sufficiently new xorg-server and libXext. NO_XSYNC=1 may be used to disable it at compile time. Thanks to tchebb for reporting and everybody else for testing. (#181) - A bit code clean-up. Replace a few XSync() with XFlush() to minimize the latency.
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/compton.h b/compton.h
index 22ee195dd..a4e838efb 100644
--- a/compton.h
+++ b/compton.h
@@ -276,6 +276,15 @@ free_paint(session_t *ps, paint_t *ppaint) {
}
/**
+ * Free w->paint.
+ */
+static inline void
+free_wpaint(session_t *ps, win *w) {
+ free_paint(ps, &w->paint);
+ free_fence(ps, &w->fence);
+}
+
+/**
* Destroy all resources in a <code>struct _win</code>.
*/
static inline void
@@ -883,7 +892,7 @@ static void
damage_win(session_t *ps, XDamageNotifyEvent *de);
static int
-error(Display *dpy, XErrorEvent *ev);
+xerror(Display *dpy, XErrorEvent *ev);
static void
expose_root(session_t *ps, XRectangle *rects, int nrects);