In desktop mode, only move the window in Z-order relative to siblings
belonging to the same process.
This commit is contained in:
parent
ae78c3c62f
commit
33fee69bf4
|
@ -559,6 +559,22 @@ int X11DRV_sync_whole_window_position( Display *display, WND *win, int zorder )
|
|||
else
|
||||
{
|
||||
HWND next = GetWindow( win->hwndSelf, GW_HWNDNEXT );
|
||||
|
||||
if (root_window != DefaultRootWindow(display))
|
||||
{
|
||||
/* in desktop mode we need the sibling to belong to the same process */
|
||||
while (next)
|
||||
{
|
||||
WND *ptr = WIN_GetPtr( next );
|
||||
if (ptr != WND_OTHER_PROCESS)
|
||||
{
|
||||
WIN_ReleasePtr( ptr );
|
||||
break;
|
||||
}
|
||||
next = GetWindow( next, GW_HWNDNEXT );
|
||||
}
|
||||
}
|
||||
|
||||
if (!next) /* bottom child */
|
||||
{
|
||||
changes.stack_mode = Below;
|
||||
|
|
Loading…
Reference in New Issue