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.
This commit is contained in:
Richard Grenville
2012-10-24 10:09:59 +08:00
parent 5dd544d29d
commit 049621bed7
3 changed files with 153 additions and 49 deletions

View File

@ -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);