diff options
author | Quentin Rameau <quinq@fifth.space> | 2017-04-19 16:05:39 +0200 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2017-04-19 19:10:21 +0200 |
commit | 2355c20e92d6f47100323e3394d565f8e8bf70dc (patch) | |
tree | d0b0a4ab10a711c86d58b8869f43afca52a78559 | |
parent | b814567e2bf8bda07cea8de1c7a062f4aa437b65 (diff) | |
download | surf-2355c20e92d6f47100323e3394d565f8e8bf70dc.tar.gz surf-2355c20e92d6f47100323e3394d565f8e8bf70dc.tar.bz2 surf-2355c20e92d6f47100323e3394d565f8e8bf70dc.zip |
Add a configure option for default window size
-rw-r--r-- | config.def.h | 3 | ||||
-rw-r--r-- | surf.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 6d3135e..0ade76e 100644 --- a/config.def.h +++ b/config.def.h @@ -42,6 +42,9 @@ static UriParameters uriparams[] = { }, }, }; +/* default window size: width, height */ +static int winsize[] = { 800, 600 }; + static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | WEBKIT_FIND_OPTIONS_WRAP_AROUND; @@ -1200,7 +1200,7 @@ createwindow(Client *c) gtk_window_set_role(GTK_WINDOW(w), wmstr); g_free(wmstr); - gtk_window_set_default_size(GTK_WINDOW(w), 800, 600); + gtk_window_set_default_size(GTK_WINDOW(w), winsize[0], winsize[1]); } g_signal_connect(G_OBJECT(w), "destroy", |