Offscreen is also in the other direction...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14829 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
831a01f893
commit
0867bda58f
@ -92,7 +92,9 @@ MainWindow::MainWindow()
|
||||
// make sure window is on screen
|
||||
BScreen screen(this);
|
||||
if (Frame().left > screen.Frame().right - 10
|
||||
|| Frame().top > screen.Frame().bottom - 10)
|
||||
|| Frame().top > screen.Frame().bottom - 10
|
||||
|| Frame().right < screen.Frame().left + 10
|
||||
|| Frame().bottom < screen.Frame().top + 10)
|
||||
_Center();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user