The Workspaces layer will now also be updated when the window hidden/shown is not on
the current workspace - this fixes bug #1191. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21491 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1490,6 +1490,7 @@ Desktop::ShowWindow(WindowLayer* window)
|
|||||||
ActivateWindow(window);
|
ActivateWindow(window);
|
||||||
} else {
|
} else {
|
||||||
// then we don't need to send the fake mouse event either
|
// then we don't need to send the fake mouse event either
|
||||||
|
_WindowChanged(window);
|
||||||
UnlockAllWindows();
|
UnlockAllWindows();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1527,7 +1528,8 @@ Desktop::HideWindow(WindowLayer* window)
|
|||||||
|
|
||||||
if (FocusWindow() == window)
|
if (FocusWindow() == window)
|
||||||
SetFocusWindow(_CurrentWindows().LastWindow());
|
SetFocusWindow(_CurrentWindows().LastWindow());
|
||||||
}
|
} else
|
||||||
|
_WindowChanged(window);
|
||||||
|
|
||||||
if (fWorkspacesLayer != NULL)
|
if (fWorkspacesLayer != NULL)
|
||||||
fWorkspacesLayer->WindowRemoved(window);
|
fWorkspacesLayer->WindowRemoved(window);
|
||||||
|
|||||||
Reference in New Issue
Block a user