diff options
author | Simon Bertrang <simon@cvs.openbsd.org> | 2008-04-07 23:47:10 +0000 |
---|---|---|
committer | Simon Bertrang <simon@cvs.openbsd.org> | 2008-04-07 23:47:10 +0000 |
commit | 4a6a046e76c217026e87c8e24a6b6e408b6b8637 (patch) | |
tree | 2a3fd0c5da608232863006d4f06af4615d165f0c /app/cwm/xevents.c | |
parent | a6bbcb34f5b630e2cb9cc130e56b2eb249cab55c (diff) |
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 'app/cwm/xevents.c')
-rw-r--r-- | app/cwm/xevents.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c index 3504e0a78..66585983b 100644 --- a/app/cwm/xevents.c +++ b/app/cwm/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: xevents.c,v 1.8 2008/03/23 15:09:21 simon Exp $ + * $Id: xevents.c,v 1.9 2008/04/07 23:47:09 simon Exp $ */ /* @@ -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"); |