mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-30 17:30:28 +01:00
Reapply the path that fix multi-window mode crashes when there were
multiple instances of XWin.exe.
This commit is contained in:
parent
058a0da9ea
commit
8369505bdf
1 changed files with 5 additions and 0 deletions
|
|
@ -766,6 +766,8 @@ winReorderWindowsMultiWindow (void)
|
|||
WindowPtr pWinSib = NULL;
|
||||
XID vlist[2];
|
||||
static Bool fRestacking = FALSE; /* Avoid recusive calls to this function */
|
||||
DWORD dwCurrentProcessID = GetCurrentProcessId ();
|
||||
DWORD dwWindowProcessID = 0;
|
||||
|
||||
#if CYGMULTIWINDOW_DEBUG || CYGWINDOWING_DEBUG
|
||||
ErrorF ("winReorderWindowsMultiWindow\n");
|
||||
|
|
@ -787,7 +789,10 @@ winReorderWindowsMultiWindow (void)
|
|||
hwnd;
|
||||
hwnd = GetNextWindow (hwnd, GW_HWNDNEXT) )
|
||||
{
|
||||
GetWindowThreadProcessId (hwnd, &dwWindowProcessID);
|
||||
|
||||
if ( GetProp (hwnd, WIN_WINDOW_PROP)
|
||||
&& (dwWindowProcessID == dwCurrentProcessID)
|
||||
&& !IsIconic (hwnd) ) /* ignore minimized windows */
|
||||
{
|
||||
pWinSib = pWin;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue