Skip to content
Snippets Groups Projects
Commit 33fee69b authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

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

belonging to the same process.
parent ae78c3c6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment