From c062d7f96f47bdd31640be1fbce682d0774db3d9 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Tue, 19 Apr 2005 18:21:01 +0000 Subject: Prevent recursive calls to winRaiseWindow. --- hw/xwin/ChangeLog | 5 +++++ hw/xwin/winmultiwindowwndproc.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 + + * winmultiwindowwndproc.c: + Prevent recursive calls to winRaiseWindow. + 2005-03-10 Alexander Gottwald * 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; } } -- cgit v1.2.3