X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Ftint.c;h=3eebf88dfe2cb5bf3f670b8949abfcd7dc8479ea;hb=5b867835741534d8d28e8d158b8f7de53e55018a;hp=88f33434888152b699a26b8b008047d33477c84a;hpb=51a411ce2e67462970fc572dd88fe6d6e532968c;p=chaz%2Ftint2 diff --git a/src/tint.c b/src/tint.c index 88f3343..3eebf88 100644 --- a/src/tint.c +++ b/src/tint.c @@ -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; - printf("SIGUSR1\n"); + init_config(); config_read_file (config_path); init_panel(); + cleanup_config(); break; case SIGINT: case SIGTERM: