From 3269959033ed0c675a3a906666454df34086896a Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 17 Dec 2008 15:09:35 -0800 Subject: XQuartz: Get rid of white rectangle bug --- miext/rootless/rootlessWindow.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/miext/rootless/rootlessWindow.c b/miext/rootless/rootlessWindow.c index 74c5dbb53..da02fe04a 100644 --- a/miext/rootless/rootlessWindow.c +++ b/miext/rootless/rootlessWindow.c @@ -632,7 +632,7 @@ RootlessReorderWindow(WindowPtr pWin) { RootlessWindowRec *winRec = WINREC(pWin); - if (winRec != NULL && !winRec->is_reorder_pending) { + if (pWin->realized && winRec != NULL && !winRec->is_reorder_pending && !windows_hidden) { WindowPtr newPrevW; RootlessWindowRec *newPrev; RootlessFrameID newPrevID; @@ -1662,7 +1662,10 @@ RootlessOrderAllWindows (void) { int i; WindowPtr pWin; - + + if (windows_hidden) + return; + RL_DEBUG_MSG("RootlessOrderAllWindows() "); for (i = 0; i < screenInfo.numScreens; i++) { if (screenInfo.screens[i] == NULL) continue; -- cgit v1.2.3