rcxml: track first loaded config file for IPC

This commit is contained in:
stormshadow 2026-04-17 04:25:44 +05:30 committed by Anirvan Banerjee
parent 0076c528b7
commit c675da04aa

View file

@ -2030,6 +2030,10 @@ rcxml_read(const char *filename)
continue;
}
if (!rc.loaded_config_file) {
xstrdup_replace(rc.loaded_config_file, path->string);
}
wlr_log(WLR_INFO, "read config file %s", path->string);
rcxml_parse_xml(&b);
@ -2059,6 +2063,7 @@ rcxml_finish(void)
zfree(rc.workspace_config.initial_workspace_name);
zfree(rc.tablet.output_name);
zfree(rc.window_switcher.osd.thumbnail_label_format);
zfree(rc.loaded_config_file);
clear_title_layout();