summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-01-02 16:02:52 +0100
committerjcid <devnull@localhost>2008-01-02 16:02:52 +0100
commitf5ee910658b12a930379631f0bd55ce781441878 (patch)
treeeee28a5b17ed661e533a0d42d1e88ed86f6f8bf7 /src
parent2da16cf47f0a8bf881ec756eb9c1a6b824e6c55d (diff)
- Enabled the geometry offset part (dillorc2).
Diffstat (limited to 'src')
-rw-r--r--src/uicmd.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 3a663be2..58d5089e 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -73,6 +73,14 @@ BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh, const void *v_ui)
//new_ui->set_location("http://dillo.org/");
//new_ui->customize(12);
+ if (v_ui == NULL && prefs.xpos >= 0 && prefs.ypos >= 0) {
+ // position the first window according to preferences
+ fltk::Rectangle r;
+ new_ui->borders(&r);
+ // borders() gives x and y border sizes as negative values
+ new_ui->position(prefs.xpos - r.x(), prefs.ypos - r.y());
+ }
+
// Now create the Dw render layout and viewport
FltkPlatform *platform = new FltkPlatform ();
Layout *layout = new Layout (platform);