* 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:
Axel Dörfler
2006-04-03 11:41:16 +00:00
parent 8aca9ad64d
commit cce5601a7a
+7
View File
@@ -647,6 +647,9 @@ Desktop::RedrawBackground()
_SetBackground(redraw);
}
_WindowChanged(NULL);
// update workspaces view as well
UnlockAllWindows();
}
@@ -672,6 +675,7 @@ Desktop::SetWorkspace(int32 index)
}
int32 previousIndex = fCurrentWorkspace;
RGBColor previousColor = fWorkspaces[fCurrentWorkspace].Color();
if (fMouseEventWindow != NULL) {
if (!fMouseEventWindow->InWorkspace(index)) {
@@ -788,6 +792,9 @@ Desktop::SetWorkspace(int32 index)
_WindowChanged(NULL);
MarkDirty(dirty);
if (previousColor != fWorkspaces[fCurrentWorkspace].Color())
RedrawBackground();
UnlockAllWindows();
_SendFakeMouseMoved();