diff -r 43cb1ea4c582 -r 4ce8df2311f0 ui/gtk/window.c --- a/ui/gtk/window.c Sun Nov 23 10:23:10 2025 +0100 +++ b/ui/gtk/window.c Sun Nov 23 10:39:51 2025 +0100 @@ -35,6 +35,7 @@ #include "../common/context.h" #include "../common/menu.h" #include "../common/toolbar.h" +#include "../common/utils.h" #include @@ -169,16 +170,7 @@ int window_width = window_default_width; int window_height = window_default_height; if(!simple) { - const char *width = ui_get_property("ui.window.width"); - const char *height = ui_get_property("ui.window.height"); - if(width && height) { - int w = atoi(width); - int h = atoi(height); - if(w > 0 && h > 0) { - window_width = w; - window_height = h; - } - } + ui_get_window_default_width(&window_width, &window_height); } gtk_window_set_default_size( GTK_WINDOW(obj->widget),