summaryrefslogtreecommitdiff
path: root/miext/rootless
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremy@tifa.local>2008-01-28 12:18:43 -0800
committerJeremy Huddleston <jeremy@tifa.local>2008-01-28 12:25:29 -0800
commit4fc2d3cef8d7868b025aa14af7ed4b730e8f2c49 (patch)
treea515a40fac271d6cef1d9200c48c4312eea06c1d /miext/rootless
parent16b0614c8c441eb1692bde9e58fadf54a9c6f00f (diff)
Rootless: RootlessEnsureFrame: Added check for !IsRoot
This was causing an issue with Apple-DRI and was reported here: http://trac.macosforge.org/projects/xquartz/ticket/51 (cherry picked from commit 116800279d2ec783c63f43d3902627edde6a4cff)
Diffstat (limited to 'miext/rootless')
-rw-r--r--miext/rootless/rootlessWindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miext/rootless/rootlessWindow.c b/miext/rootless/rootlessWindow.c
index b95339888..7285f959d 100644
--- a/miext/rootless/rootlessWindow.c
+++ b/miext/rootless/rootlessWindow.c
@@ -471,7 +471,7 @@ RootlessEnsureFrame(WindowPtr pWin)
if (WINREC(pWin) != NULL)
return WINREC(pWin);
- if (!IsTopLevel(pWin))
+ if (!IsTopLevel(pWin) && !IsRoot(pWin))
return NULL;
if (pWin->drawable.class != InputOutput)