Prevent recursive calls to winRaiseWindow.
This commit is contained in:
parent
4e914c5ed7
commit
c062d7f96f
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue