* 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:
@@ -30,8 +30,8 @@ AlertWindow::AlertWindow(BMessenger target)
|
|||||||
|
|
||||||
// center window on screen
|
// center window on screen
|
||||||
BScreen screen(this);
|
BScreen screen(this);
|
||||||
MoveTo((screen.Frame().Width() - Frame().Width()) / 2,
|
MoveTo(screen.Frame().left + (screen.Frame().Width() - Frame().Width()) / 2,
|
||||||
(screen.Frame().Height() - Frame().Height()) / 2);
|
screen.Frame().top + (screen.Frame().Height() - Frame().Height()) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -902,6 +902,7 @@ ScreenWindow::MessageReceived(BMessage* message)
|
|||||||
fChangingAllWorkspaces = false;
|
fChangingAllWorkspaces = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fScreenMode.UpdateOriginalMode();
|
||||||
UpdateActiveMode();
|
UpdateActiveMode();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user