diff --git a/src/apps/icon-o-matic/IconEditorApp.cpp b/src/apps/icon-o-matic/IconEditorApp.cpp
index 27f73a9..c1f9760 100644
a
|
b
|
|
18 | 18 | #include <Message.h> |
19 | 19 | #include <Mime.h> |
20 | 20 | #include <Path.h> |
| 21 | #include <Screen.h> |
21 | 22 | #include <storage/FindDirectory.h> |
22 | 23 | |
23 | 24 | #include "support_settings.h" |
… |
… |
MainWindow*
|
273 | 274 | IconEditorApp::_NewWindow() |
274 | 275 | { |
275 | 276 | fLastWindowFrame.OffsetBy(kWindowOffset, kWindowOffset); |
| 277 | |
| 278 | BScreen screen(B_MAIN_SCREEN_ID); |
| 279 | if (!(screen.Frame().Contains(fLastWindowFrame))) { |
| 280 | if (fLastWindowFrame.right > screen.Frame().right) { |
| 281 | fLastWindowFrame.OffsetTo(5.0f, fLastWindowFrame.top); |
| 282 | } |
| 283 | if (fLastWindowFrame.bottom > screen.Frame().bottom) { |
| 284 | fLastWindowFrame.OffsetTo(fLastWindowFrame.left, 26.0f); |
| 285 | } |
| 286 | } |
| 287 | |
276 | 288 | MainWindow* window = new MainWindow(fLastWindowFrame, this, |
277 | 289 | &fLastWindowSettings); |
278 | 290 | fWindowCount++; |