diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-04-19 18:21:01 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-04-19 18:21:01 +0000 |
commit | c062d7f96f47bdd31640be1fbce682d0774db3d9 (patch) | |
tree | 7bb1d00542754ddfdb0eb9b29f628566388523e4 /hw/xwin | |
parent | 4e914c5ed7679a1102f3e25af0c087380f834865 (diff) |
Prevent recursive calls to winRaiseWindow.
Diffstat (limited to 'hw/xwin')
-rw-r--r-- | hw/xwin/ChangeLog | 5 | ||||
-rwxr-xr-x | hw/xwin/winmultiwindowwndproc.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/hw/xwin/ChangeLog b/hw/xwin/ChangeLog index ed7f7b200..2a4587d1f 100644 --- a/hw/xwin/ChangeLog +++ b/hw/xwin/ChangeLog @@ -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: 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; } } |