]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
fixed switch between config with killall -SIGUSR1 tint2
[chaz/tint2] / src / tint.c
index ec30b5d25566c20d6c6e52c1f7ad895161560969..3eebf88dfe2cb5bf3f670b8949abfcd7dc8479ea 100644 (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:
This page took 0.020953 seconds and 4 git commands to generate.