diff -r 795c26a59016 config.default.h --- a/config.default.h Sun Aug 26 12:54:20 2007 +0200 +++ b/config.default.h Sat Sep 01 17:27:19 2007 +0200 @@ -91,4 +91,5 @@ Key keys[] = { \ { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, tags[7] }, \ { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, tags[8] }, \ { MODKEY|ShiftMask, XK_q, quit, NULL }, \ + { MODKEY|ControlMask|ShiftMask, XK_q, quit, "255" }, \ }; diff -r 795c26a59016 main.c --- a/main.c Sun Aug 26 12:54:20 2007 +0200 +++ b/main.c Sat Sep 01 17:27:19 2007 +0200 @@ -36,6 +36,7 @@ static int (*xerrorxlib)(Display *, XErr static int (*xerrorxlib)(Display *, XErrorEvent *); static Bool otherwm, readin; static Bool running = True; +static int retval; static void cleanup(void) { @@ -273,6 +274,7 @@ gettextprop(Window w, Atom atom, char *t void quit(const char *arg) { + retval = arg ? atoi(arg) : 0; readin = running = False; } @@ -369,5 +371,5 @@ main(int argc, char *argv[]) { } cleanup(); XCloseDisplay(dpy); - return 0; -} + return retval; +}