Skip to content

Commit

Permalink
core: watch all included config files for change
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed May 21, 2024
1 parent e7e841b commit 9a83982
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/picom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2363,6 +2363,11 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
if (ps->file_watch_handle) {
file_watch_add(ps->file_watch_handle, ps->o.config_file_path,
config_file_change_cb, ps);
list_foreach(struct included_config_file, i,
&ps->o.included_config_files, siblings) {
file_watch_add(ps->file_watch_handle, i->path,
config_file_change_cb, ps);
}
}
}

Expand Down

0 comments on commit 9a83982

Please sign in to comment.