diff -pru dillo/dillorc dillo.teste/dillorc
--- dillo/dillorc	Sun Dec 10 01:26:18 2000
+++ dillo.teste/dillorc	Tue Dec 26 03:41:38 2000
@@ -12,6 +12,10 @@ home=http://dillo.sourceforge.net/
 # Set the domain to access without proxy
 #no_proxy = http://www.mynet.com/
 
+# Geometry Section
+# Set the desired initial geometry size
+geometry="800x600"
+
 # Color Section
 # Here we can use the standard (and extended) html named color or 
 # the hexdecimal version (in C style)
diff -pru dillo/src/commands.c dillo.teste/src/commands.c
--- dillo/src/commands.c	Fri Dec 22 23:45:09 2000
+++ dillo.teste/src/commands.c	Tue Dec 26 03:41:38 2000
@@ -323,10 +323,12 @@ void a_Commands_manual_callback(GtkWidge
 void a_Commands_open_link_nw_callback(GtkWidget *widget, gpointer client_data)
 {
    BrowserWindow *bw = (BrowserWindow *)client_data;
+   gint width, height;
    BrowserWindow *newbw;
+   
+   gdk_window_get_size ((GdkWindow *)bw->main_window, &width, &height);
+   newbw = a_Interface_new_browser_window(width, height);
 
-   newbw = a_Interface_new_browser_window(bw->main_window->allocation.width, 
-					  bw->main_window->allocation.height);
    a_Nav_push(newbw, bw->menu_popup.info.url);
 }
 
diff -pru dillo/src/dillo.c dillo.teste/src/dillo.c
--- dillo/src/dillo.c	Fri Dec 22 23:45:10 2000
+++ dillo.teste/src/dillo.c	Tue Dec 26 03:41:38 2000
@@ -93,7 +93,7 @@ gint main(int argc, char *argv[])
 
    /* a_Nav_init() has been moved into this call because it needs to be
     * initialized with the new browser_window structure */
-   bw = a_Interface_new_browser_window(640, 550);
+   bw = a_Interface_new_browser_window(prefs.width, prefs.height);
 
    a_Bookmarks_init();
 
diff -pru dillo/src/prefs.c dillo.teste/src/prefs.c
--- dillo/src/prefs.c	Sat Dec  9 12:43:50 2000
+++ dillo.teste/src/prefs.c	Tue Dec 26 03:59:15 2000
@@ -22,6 +22,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <stdlib.h> /* for `strtol()', `*alloc()' */
 #include "prefs.h"
 #include "colors.h"
 #include "dillo.h"
@@ -39,7 +40,8 @@ static const struct {
    { "allow_white_bg", DRC_TOKEN_ALLOW_WHITE_BG, },
    { "force_my_colors", DRC_TOKEN_FORCE_MY_COLORS, },
    { "text_color", DRC_TOKEN_TEXT_COLOR, },
-   { "home", DRC_TOKEN_HOME }
+   { "home", DRC_TOKEN_HOME, },
+   { "geometry", DRC_TOKEN_GEOMETRY}
 };
 
 static const guint n_symbols = sizeof (symbols) / sizeof (symbols[0]);
@@ -94,6 +96,22 @@ static guint Prefs_parser (GScanner *sca
    case DRC_TOKEN_HOME:
       prefs.home = g_strdup(scanner->value.v_string);
       break;
+   case DRC_TOKEN_GEOMETRY:
+      {
+	 gchar *ptr, *index, *start = scanner->value.v_string;
+
+	 if ( (index = strchr(start, 'x')) ) {  
+            ptr = (gchar *)malloc((index - start)*sizeof(gchar));
+	    strncpy(ptr, start, index - start);
+	    prefs.width = strtol(ptr, NULL, 10);
+
+	    ptr = (gchar *)realloc(ptr, (strchr(index, '\0') - index)*sizeof(gchar));
+	    strcpy(ptr, index+1);
+	    prefs.height = strtol(ptr, NULL, 10);
+	    free(ptr);
+	 }
+	 break;
+      }
    default:
       break;   /* Not reached */
    }
@@ -176,6 +194,8 @@ void a_Prefs_init(void)
    prefs.link_color = DW_COLOR_DEFAULT_BLUE;
    prefs.bg_color = DW_COLOR_DEFAULT_BGND;
    prefs.text_color = DW_COLOR_DEFAULT_BLACK;
+   prefs.width  = DW_GEOMETRY_DEFAULT_WIDTH;
+   prefs.height = DW_GEOMETRY_DEFAULT_HEIGHT;
    prefs.home = DILLO_HOME;
    prefs.allow_white_bg = FALSE;
    prefs.force_my_colors = FALSE;
diff -pru dillo/src/prefs.h dillo.teste/src/prefs.h
--- dillo/src/prefs.h	Mon Aug 28 22:18:44 2000
+++ dillo.teste/src/prefs.h	Tue Dec 26 03:41:38 2000
@@ -10,6 +10,9 @@ extern "C" {
 #define DW_COLOR_DEFAULT_BLUE   0x0000ff
 #define DW_COLOR_DEFAULT_BGND   0xd6d6c0
 
+#define DW_GEOMETRY_DEFAULT_WIDTH   640
+#define DW_GEOMETRY_DEFAULT_HEIGHT  550
+
 /* define enumeration values to be returned */
 enum {
    PARSE_OK = 0,
@@ -27,6 +30,7 @@ typedef enum {
    DRC_TOKEN_FORCE_MY_COLORS,
    DRC_TOKEN_TEXT_COLOR,
    DRC_TOKEN_HOME,
+   DRC_TOKEN_GEOMETRY,
    DRC_TOKEN_LAST
 } Dillo_Rc_TokenType;
 
@@ -39,6 +43,8 @@ struct _DilloPrefs {
    guint32 link_color;
    guint32 bg_color;
    guint32 text_color;
+   gint width;
+   gint height;
    gboolean allow_white_bg;
    gboolean force_my_colors;
 };
