Prevent recursive calls to winRaiseWindow.

This commit is contained in:
Alexander Gottwald 2005-04-19 18:21:01 +00:00
parent 4e914c5ed7
commit c062d7f96f
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-19 Alexander Gottwald <ago at freedesktop dot org>
* winmultiwindowwndproc.c:
Prevent recursive calls to winRaiseWindow.
2005-03-10 Alexander Gottwald <ago at freedesktop dot org>
* winmultiwindowwndproc.c:

View File

@ -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;
}
}