fixed default position/size behaviour
[psensor.git] / src / cfg.c
index 3e66927..8b25c40 100644 (file)
--- a/src/cfg.c
+++ b/src/cfg.c
@@ -487,7 +487,7 @@ struct config *config_load()
                                       KEY_INTERFACE_WINDOW_DIVIDER_POS,
                                       NULL);
 
-       if (!c->window_w || !c->window_h) {
+       if (!c->window_restore_enabled || !c->window_w || !c->window_h) {
                c->window_w = 800;
                c->window_h = 200;
        }