diff options
-rw-r--r-- | action.c | 2 | ||||
-rw-r--r-- | action.h | 4 | ||||
-rw-r--r-- | main.c | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -14,7 +14,7 @@ struct event_lookup ev_lookup_table[] = { { "exposet", exposetitle}, { "exposes", exposeslave}, { "onstart", onstart}, - { "onquit", onquit}, + { "onexit", onexit}, { "button1", button1}, { "button2", button2}, { "button3", button3}, @@ -15,8 +15,8 @@ typedef struct EV Ev; enum ev_id { /* internal events, should not be used by the user */ exposetitle, exposeslave, - /* startup, shutdown */ - onstart, onquit, + /* startup, exit */ + onstart, onexit, /* mouse buttons */ button1, button2, button3, button4, button5, /* entering/leaving windows */ @@ -32,7 +32,7 @@ catch_sigusr2() { static void catch_sigterm() { - do_action(onquit); + do_action(onexit); } sigfunc * @@ -454,7 +454,7 @@ main(int argc, char *argv[]) { fill_ev_table(edef); } - if(ev_table[onquit].isset && (setup_signal(SIGTERM, catch_sigterm) == SIG_ERR)) + if(ev_table[onexit].isset && (setup_signal(SIGTERM, catch_sigterm) == SIG_ERR)) fprintf(stderr, "dzen: error hooking SIGTERM\n"); if(ev_table[sigusr1].isset && (setup_signal(SIGUSR1, catch_sigusr1) == SIG_ERR)) fprintf(stderr, "dzen: error hooking SIGUSR1\n"); @@ -478,7 +478,7 @@ main(int argc, char *argv[]) { /* main event loop */ event_loop(NULL); - do_action(onquit); + do_action(onexit); clean_up(); |