don't blit stuff arround on screen when moving or resizing invisible windows, this bug was most visibly triggered when navigating menus, since the menu window was reused and moved and resized when it was invisible, weird things could happen on the screen...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16308 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-02-09 12:38:46 +00:00
parent a92dff57f2
commit b5182fe099
1 changed files with 11 additions and 0 deletions

View File

@ -1279,6 +1279,11 @@ Desktop::MoveWindowBy(WindowLayer* window, float x, float y)
window->MoveBy(x, y);
if (!window->IsVisible()) {
UnlockAllWindows();
return;
}
BRegion background;
_RebuildClippingForAllWindows(background);
@ -1314,6 +1319,12 @@ Desktop::ResizeWindowBy(WindowLayer* window, float x, float y)
if (!LockAllWindows())
return;
if (!window->IsVisible()) {
window->ResizeBy(x, y, NULL);
UnlockAllWindows();
return;
}
// the dirty region for the inside of the window is
// constructed by the window itself in ResizeBy()
BRegion newDirtyRegion;