In desktop mode, only move the window in Z-order relative to siblings

belonging to the same process.
This commit is contained in:
Alexandre Julliard 2003-10-02 04:47:35 +00:00
parent ae78c3c62f
commit 33fee69bf4
1 changed files with 16 additions and 0 deletions

View File

@ -559,6 +559,22 @@ int X11DRV_sync_whole_window_position( Display *display, WND *win, int zorder )
else else
{ {
HWND next = GetWindow( win->hwndSelf, GW_HWNDNEXT ); 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 */ if (!next) /* bottom child */
{ {
changes.stack_mode = Below; changes.stack_mode = Below;