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
This commit is contained in:
Jeremy Huddleston 2008-01-28 12:18:43 -08:00
parent 5ef366e8eb
commit 116800279d

View File

@ -473,7 +473,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)