44 lines
1.1 KiB
Diff
44 lines
1.1 KiB
Diff
|
Author: Matthew Garrett <mjg59@srcf.ucam.org>
|
||
|
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)
|
||
|
|
||
|
--- a/src/display.c
|
||
|
+++ b/src/display.c
|
||
|
@@ -2234,6 +2234,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;
|
||
|
--- a/include/compiz-core.h
|
||
|
+++ b/include/compiz-core.h
|
||
|
@@ -1028,6 +1028,8 @@ struct _CompDisplay {
|
||
|
|
||
|
GLenum textureFilter;
|
||
|
|
||
|
+ Window glIncludeInferiorsOwner;
|
||
|
+
|
||
|
Window activeWindow;
|
||
|
Window nextActiveWindow;
|
||
|
|