diff options
author | simon <simon> | 2008-04-07 23:47:09 +0000 |
---|---|---|
committer | simon <simon> | 2008-04-07 23:47:09 +0000 |
commit | 0f182230426e86175a00b6e9328cc8d9bf0b876e (patch) | |
tree | 7324d6959e887170dff89a63c564030cfd7d8216 /xevents.c | |
parent | cb2cc70c3f757ca57addd3d7fba49353380ed5b2 (diff) | |
download | cwm-0f182230426e86175a00b6e9328cc8d9bf0b876e.tar.gz cwm-0f182230426e86175a00b6e9328cc8d9bf0b876e.tar.xz cwm-0f182230426e86175a00b6e9328cc8d9bf0b876e.zip |
Add quit function, bind it per default to CM-q and change exec_wm
binding to CM-w. Inital diff from Gleydson Soares Feedback from oga@ and okan@ ok oga@
Diffstat (limited to 'xevents.c')
-rw-r--r-- | xevents.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c index a0f3538..b0d1c89 100644 --- a/xevents.c +++ b/xevents.c @@ -451,6 +451,7 @@ out: static struct xevent_q _xevq, _xevq_putaway; static short _xev_q_lock = 0; +int _xev_quit = 0; void xev_init(void) @@ -524,7 +525,7 @@ xev_loop(void) XEvent e; struct xevent *xev, *nextxev; - for (;;) { + while (_xev_quit == 0) { #ifdef DIAGNOSTIC if (TAILQ_EMPTY(&_xevq)) errx(1, "X event queue empty"); |