mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-08 20:50:46 +01:00
Prevent recursive calls to winRaiseWindow.
This commit is contained in:
parent
4e914c5ed7
commit
c062d7f96f
2 changed files with 10 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue