summaryrefslogtreecommitdiff
path: root/hw/xwin/winmultiwindowwndproc.c
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-04-19 18:21:01 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-04-19 18:21:01 +0000
commitc062d7f96f47bdd31640be1fbce682d0774db3d9 (patch)
tree7bb1d00542754ddfdb0eb9b29f628566388523e4 /hw/xwin/winmultiwindowwndproc.c
parent4e914c5ed7679a1102f3e25af0c087380f834865 (diff)
Prevent recursive calls to winRaiseWindow.
Diffstat (limited to 'hw/xwin/winmultiwindowwndproc.c')
-rwxr-xr-xhw/xwin/winmultiwindowwndproc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/xwin/winmultiwindowwndproc.c b/hw/xwin/winmultiwindowwndproc.c
index a732d5307..93ddcd4b3 100755
--- a/hw/xwin/winmultiwindowwndproc.c
+++ b/hw/xwin/winmultiwindowwndproc.c
@@ -266,15 +266,19 @@ ValidateSizing (HWND hwnd, WindowPtr pWin,
}
extern Bool winInDestroyWindowsWindow;
+static Bool winInRaiseWindow = FALSE;
static void winRaiseWindow(WindowPtr pWin)
{
- if (!winInDestroyWindowsWindow)
+ if (!winInDestroyWindowsWindow && !winInRaiseWindow)
{
+ BOOL oldstate = winInRaiseWindow;
+ winInRaiseWindow = TRUE;
/* Call configure window directly to make sure it gets processed
* in time
*/
XID vlist[1] = { 0 };
ConfigureWindow(pWin, CWStackMode, vlist, NULL);
+ winInRaiseWindow = oldstate;
}
}