We only need to check for same process siblings in desktop mode for

top-level windows.
This commit is contained in:
Alexandre Julliard 2003-10-03 03:38:05 +00:00
parent 166e96d11f
commit e0c082b339
1 changed files with 2 additions and 1 deletions

View File

@ -560,7 +560,8 @@ int X11DRV_sync_whole_window_position( Display *display, WND *win, int zorder )
{
HWND next = GetWindow( win->hwndSelf, GW_HWNDNEXT );
if (root_window != DefaultRootWindow(display))
if (win->parent == GetDesktopWindow() &&
root_window != DefaultRootWindow(display))
{
/* in desktop mode we need the sibling to belong to the same process */
while (next)