summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-06 20:13:25 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-06 20:13:25 (EDT)
commit267f6675db90c97bdf603db8fa68d83c09a06954 (patch)
tree725f7cdf479bfe5e440ab6517b6f4e782a07a126 /src
parent3858228d25206be6da1c40ae2eaf6547d83f9477 (diff)
downloadmarquee-267f6675db90c97bdf603db8fa68d83c09a06954.zip
marquee-267f6675db90c97bdf603db8fa68d83c09a06954.tar.gz
marquee-267f6675db90c97bdf603db8fa68d83c09a06954.tar.bz2
mq_window_new(): Set default window size even if maximized
Diffstat (limited to 'src')
-rw-r--r--src/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index f516427..f3a10a3 100644
--- a/src/window.c
+++ b/src/window.c
@@ -92,10 +92,10 @@ mq_window_new(MqApplication *application, const gchar **uris)
gtk_window_maximize(GTK_WINDOW(window->window));
} else {
gtk_window_unmaximize(GTK_WINDOW(window->window));
- gtk_window_set_default_size(GTK_WINDOW(window->window),
- mq_config_get_integer(config, "window.width"),
- mq_config_get_integer(config, "window.height"));
}
+ gtk_window_set_default_size(GTK_WINDOW(window->window),
+ mq_config_get_integer(config, "window.width"),
+ mq_config_get_integer(config, "window.height"));
g_signal_connect(window->window, "notify::is-maximized",
G_CALLBACK(is_maximized_cb), config);
g_signal_connect(window->window, "destroy",