Layout window IDs were not being incremented when new windows were
displayed.
Bugs remain:
If a default layout has not been created, it is necessary to click on
the image for the displayed window ID to be displayed correctly.
{
work = g_list_last(layout_window_list);
lw = static_cast<LayoutWindow *>(work->data);
- g_free(lw->options.id);
- lw->options.id = g_strdup(layout_get_unique_id());
}
else
{
lw = layout_new_from_config(nullptr, nullptr, TRUE);
}
+
+ g_free(lw->options.id);
+ lw->options.id = g_strdup(layout_get_unique_id());
+
return lw;
}
layout_valid(&lw);
tmp_id = lw->options.id;
- lw->options.id = g_strdup("lw_default");
+ lw->options.id = g_strdup("");
default_path = g_build_filename(get_rc_dir(), DEFAULT_WINDOW_LAYOUT, NULL);
save_default_layout_options_to_file(default_path, options, lw);