aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--action.c2
-rw-r--r--action.h4
-rw-r--r--main.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/action.c b/action.c
index 85f48b6..f3026e5 100644
--- a/action.c
+++ b/action.c
@@ -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},
diff --git a/action.h b/action.h
index 9085410..da5b739 100644
--- a/action.h
+++ b/action.h
@@ -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 */
diff --git a/main.c b/main.c
index fd5778a..7a00647 100644
--- a/main.c
+++ b/main.c
@@ -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();