* The background is now repainted on workspace switch in case the background
color differs. This fixes bug #373. * The workspaces window is now invalidated when the workspace color is changed, so that it shows the correct color then. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16979 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -647,6 +647,9 @@ Desktop::RedrawBackground()
|
|||||||
_SetBackground(redraw);
|
_SetBackground(redraw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_WindowChanged(NULL);
|
||||||
|
// update workspaces view as well
|
||||||
|
|
||||||
UnlockAllWindows();
|
UnlockAllWindows();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -672,6 +675,7 @@ Desktop::SetWorkspace(int32 index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32 previousIndex = fCurrentWorkspace;
|
int32 previousIndex = fCurrentWorkspace;
|
||||||
|
RGBColor previousColor = fWorkspaces[fCurrentWorkspace].Color();
|
||||||
|
|
||||||
if (fMouseEventWindow != NULL) {
|
if (fMouseEventWindow != NULL) {
|
||||||
if (!fMouseEventWindow->InWorkspace(index)) {
|
if (!fMouseEventWindow->InWorkspace(index)) {
|
||||||
@@ -788,6 +792,9 @@ Desktop::SetWorkspace(int32 index)
|
|||||||
_WindowChanged(NULL);
|
_WindowChanged(NULL);
|
||||||
MarkDirty(dirty);
|
MarkDirty(dirty);
|
||||||
|
|
||||||
|
if (previousColor != fWorkspaces[fCurrentWorkspace].Color())
|
||||||
|
RedrawBackground();
|
||||||
|
|
||||||
UnlockAllWindows();
|
UnlockAllWindows();
|
||||||
|
|
||||||
_SendFakeMouseMoved();
|
_SendFakeMouseMoved();
|
||||||
|
|||||||
Reference in New Issue
Block a user