summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2012-10-24 10:09:59 +0800
committerRichard Grenville <pyxlcy@gmail.com>2012-10-24 10:23:26 +0800
commitc1471ff16a88f5383450fa6715124b465f379727 (patch)
tree7fe817717ea401af92ef5a0f6908eefcc756886c /compton.h
parent71613f20c2f50b9a9a24547296d6ef81e5a119c8 (diff)
downloadtdebase-c1471ff16a88f5383450fa6715124b465f379727.tar.gz
tdebase-c1471ff16a88f5383450fa6715124b465f379727.zip
Improvement: Add painting on overlay support
- Add support for painting on X Composite overlay window instead of root window (--paint-on-overlay). I intended to use this to fix the conflict between conky (own-window off) and compton, but it's unsuccessful. Will have to ask somebody to figure out how to solve this problem. - Rename a few variables to avoid confusion. - Slightly change how root window content (wallpaper) change is detected. - Slightly improve window name detection in DEBUG_EVENTS.
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/compton.h b/compton.h
index ee505985a..77c67ed3e 100644
--- a/compton.h
+++ b/compton.h
@@ -307,6 +307,9 @@ typedef struct _options {
Bool fork_after_register;
/// Whether to detect rounded corners.
Bool detect_rounded_corners;
+ /// Whether to paint on X Composite overlay window instead of root
+ /// window.
+ Bool paint_on_overlay;
/// Whether to work under synchronized mode for debugging.
Bool synchronize;
@@ -1159,3 +1162,9 @@ vsync_wait(Display *dpy, struct pollfd *fd, int timeout);
static void
init_alpha_picts(Display *dpy);
+
+static void
+init_dbe(void);
+
+static void
+init_overlay(void);