Bug fix: Layout window id not set
authorColin Clark <colin.clark@cclark.uk>
Thu, 23 Mar 2023 16:10:17 +0000 (16:10 +0000)
committerColin Clark <colin.clark@cclark.uk>
Thu, 23 Mar 2023 16:10:17 +0000 (16:10 +0000)
If there is no geeqierc.xml file, the lw->options.id is not set. This
leads to a glib critical error in some cases.

src/options.cc

index 9680030..87e9395 100644 (file)
@@ -301,6 +301,7 @@ LayoutOptions *init_layout_options(LayoutOptions *options)
        options->float_window.x = 0;
        options->float_window.y = 0;
        options->home_path = NULL;
+       options->id = g_strdup("lw1");
        options->main_window.h = 540;
        options->main_window.hdivider_pos = -1;
        options->main_window.maximized = FALSE;