* Reverting the screen mode now reverts to the one applied last, not the

one that was active when the application was launched (which was lost
  on workspace change, anyway).
* Fixed on-screen centering of the AlertWindow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16866 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-03-23 15:17:54 +00:00
parent c5d80d47d8
commit cfa91cc4cb
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ AlertWindow::AlertWindow(BMessenger target)
// center window on screen
BScreen screen(this);
MoveTo((screen.Frame().Width() - Frame().Width()) / 2,
(screen.Frame().Height() - Frame().Height()) / 2);
MoveTo(screen.Frame().left + (screen.Frame().Width() - Frame().Width()) / 2,
screen.Frame().top + (screen.Frame().Height() - Frame().Height()) / 2);
}
+1
View File
@@ -902,6 +902,7 @@ ScreenWindow::MessageReceived(BMessage* message)
fChangingAllWorkspaces = false;
}
fScreenMode.UpdateOriginalMode();
UpdateActiveMode();
break;
}