diff options
author | okan <okan> | 2014-01-24 22:38:02 +0000 |
---|---|---|
committer | okan <okan> | 2014-01-24 22:38:02 +0000 |
commit | 5fd119daea8de1e84f382e7651c996fd861974b9 (patch) | |
tree | de65598674fad017b2c1ea457480a5c7ab7c6be8 /xevents.c | |
parent | 371902b3c9fc6c7419f8134e96d67c8735726ff2 (diff) | |
parent | 6f103498437d2b2b9eeee66be168a1cc0144bdff (diff) | |
download | cwm-5fd119daea8de1e84f382e7651c996fd861974b9.tar.gz cwm-5fd119daea8de1e84f382e7651c996fd861974b9.tar.xz cwm-5fd119daea8de1e84f382e7651c996fd861974b9.zip |
cvsimport
Diffstat (limited to 'xevents.c')
-rw-r--r-- | xevents.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/xevents.c b/xevents.c index 55dabab..6844f98 100644 --- a/xevents.c +++ b/xevents.c @@ -400,18 +400,14 @@ xev_handle_expose(XEvent *ee) client_draw_border(cc); } -volatile sig_atomic_t xev_quit = 0; - void -xev_loop(void) +xev_process(void) { XEvent e; - while (xev_quit == 0) { - XNextEvent(X_Dpy, &e); - if (e.type - Randr_ev == RRScreenChangeNotify) - xev_handle_randr(&e); - else if (e.type < LASTEvent && xev_handlers[e.type] != NULL) - (*xev_handlers[e.type])(&e); - } + XNextEvent(X_Dpy, &e); + if (e.type - Randr_ev == RRScreenChangeNotify) + xev_handle_randr(&e); + else if (e.type < LASTEvent && xev_handlers[e.type] != NULL) + (*xev_handlers[e.type])(&e); } |