fixed switch between config with killall -SIGUSR1 tint2

git-svn-id: http://tint2.googlecode.com/svn/trunk@226 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-10-23 20:23:11 +00:00
parent 1f42a6b80d
commit 8847de07c1
5 changed files with 65 additions and 69 deletions

View File

@@ -115,6 +115,10 @@ void init (int argc, char *argv[])
default_icon = imlib_load_image(path);
g_free(path);
}
// get monitor and desktop config
get_monitors();
get_desktops();
}
@@ -859,11 +863,12 @@ int main (int argc, char *argv[])
event_timer();
switch (signal_pending) {
case SIGUSR1:
case SIGUSR1: // reload config file
signal_pending = 0;
init_config();
config_read_file (config_path);
init_panel();
cleanup_config();
break;
case SIGINT:
case SIGTERM: