Author: Matthew Garrett Description: Disable clipping of child windows * This patch was modified to apply cleanly in 0.8.4-1 Last-Modified: Thu, 11 Feb 2010 20:06:12 +0100 Origin: vendor, ubuntu (1:0.3.6-1ubuntu10) --- compiz.orig/src/display.c +++ compiz/src/display.c @@ -2194,6 +2194,23 @@ addDisplay (const char *name) lastScreen = ScreenCount (dpy) - 1; } + { + XSetWindowAttributes attr; + Atom atom; + + attr.override_redirect = TRUE; + d->glIncludeInferiorsOwner = + XCreateWindow (dpy, XRootWindow (dpy, 0), + -100, -100, 1, 1, 0, + CopyFromParent, CopyFromParent, + CopyFromParent, + CWOverrideRedirect, + &attr); + + atom = XInternAtom (dpy, "_COMPIZ_GL_INCLUDE_INFERIORS", False); + XSetSelectionOwner(dpy, atom, d->glIncludeInferiorsOwner, CurrentTime); + } + for (i = firstScreen; i <= lastScreen; i++) { Window newWmSnOwner = None, newCmSnOwner = None; --- compiz.orig/include/compiz-core.h +++ compiz/include/compiz-core.h @@ -1028,6 +1028,8 @@ struct _CompDisplay { GLenum textureFilter; + Window glIncludeInferiorsOwner; + Window activeWindow; Window below;