dispatch loop is running.
+2005-05-08 Alexander Gottwald <ago at freedesktop dot org>
+
+ * winmultiwindowwndproc.c:
+ * winblock.c:
+ Only call ConfigureWindow from winRaiseWindow if the windows
+ message dispatch loop is running.
+
2005-05-02 Alexander Gottwald <ago at freedesktop dot org>
* winerror.c:
extern HWND g_hDlgAbout;
+Bool winInBlockHandler = FALSE;
+
/* See Porting Layer Definition - p. 6 */
void
winBlockHandler (int nScreen,
winBlockHandler_ProcessMessages:
#endif
+
+
+ winInBlockHandler = TRUE;
/* Process all messages on our queue */
while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
{
DispatchMessage (&msg);
}
}
+ winInBlockHandler = FALSE;
}
}
extern Bool winInDestroyWindowsWindow;
+extern Bool winInBlockHandler;
static Bool winInRaiseWindow = FALSE;
static void winRaiseWindow(WindowPtr pWin)
{
- if (!winInDestroyWindowsWindow && !winInRaiseWindow)
+ if (winInBlockHandler && !winInDestroyWindowsWindow && !winInRaiseWindow)
{
BOOL oldstate = winInRaiseWindow;
winInRaiseWindow = TRUE;