summaryrefslogtreecommitdiff
path: root/include/windowstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/windowstr.h')
-rw-r--r--include/windowstr.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/windowstr.h b/include/windowstr.h
index c89c7b18e..68f813991 100644
--- a/include/windowstr.h
+++ b/include/windowstr.h
@@ -90,6 +90,21 @@ typedef struct _WindowOpt {
#ifdef XINPUT
struct _OtherInputMasks *inputMasks; /* default: NULL */
#endif
+#ifdef LG3D
+ /*
+ ** Specifies the client that mapped this window.
+ ** Only valid for override redirect windows.
+ */
+ ClientPtr ovRedirCompRedirClient;
+
+ /*
+ ** HACK ALERT:
+ ** Bug fix for lg3d bug 213. See comment in ProcQueryTree.
+ ** TODO: someday: it would be nice to fix the client bug and
+ ** get rid of this hack.
+ */
+ unsigned ovRedirLieAboutRootParent : 1;
+#endif /* LG3D */
} WindowOptRec, *WindowOptPtr;
#define BackgroundPixel 2L
@@ -178,6 +193,17 @@ extern Mask DontPropagateMasks[];
#define wClient(w) (clients[CLIENT_ID((w)->drawable.id)])
#define wBorderWidth(w) ((int) (w)->borderWidth)
+#ifdef LG3D
+#define wOvRedirCompRedirClient(w) wUseDefault(w, ovRedirCompRedirClient, NULL)
+/*
+** HACK ALERT:
+** Bug fix for lg3d bug 213. See comment in ProcQueryTree.
+** TODO: someday: it would be nice to fix the client bug and
+** get rid of this hack.
+*/
+#define wovRedirLieAboutRootParent(w) wUseDefault(w, ovRedirLieAboutRootParent, 0)
+#endif /* LG3D */
+
/* true when w needs a border drawn. */
#ifdef SHAPE