Somehow, -(uint32)10 didn't do what I wanted... if there were no valid
settings, the window is now set to the intended position. Also enlarged the default window height a big, since it was a bit too unglossed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6199 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
static const char *kWorkspacesSignature = "application/x-vnd.Be-WORK";
|
static const char *kWorkspacesSignature = "application/x-vnd.Be-WORK";
|
||||||
static const char *kWorkspacesSettingFile = "Workspace_data";
|
static const char *kWorkspacesSettingFile = "Workspace_data";
|
||||||
|
|
||||||
static const uint32 kScreenBorderOffset = 10;
|
static const float kScreenBorderOffset = 10.0;
|
||||||
|
|
||||||
|
|
||||||
class WorkspacesPreferences {
|
class WorkspacesPreferences {
|
||||||
@@ -123,7 +123,7 @@ WorkspacesPreferences::WorkspacesPreferences()
|
|||||||
fWindowFrame = fScreenFrame;
|
fWindowFrame = fScreenFrame;
|
||||||
fWindowFrame.OffsetBy(-kScreenBorderOffset, -kScreenBorderOffset);
|
fWindowFrame.OffsetBy(-kScreenBorderOffset, -kScreenBorderOffset);
|
||||||
fWindowFrame.left = fWindowFrame.right - 160;
|
fWindowFrame.left = fWindowFrame.right - 160;
|
||||||
fWindowFrame.top = fWindowFrame.bottom - 120;
|
fWindowFrame.top = fWindowFrame.bottom - 140;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user