[awesome-menu] Fix quitting
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ffec807e9d
commit
da0b04d667
|
@ -1132,7 +1132,7 @@ handle_kpress(xcb_key_press_event_t *e)
|
|||
redraw();
|
||||
break;
|
||||
case XK_Escape:
|
||||
status= CANCEL;
|
||||
status = CANCEL;
|
||||
break;
|
||||
case XK_Return:
|
||||
status = STOP;
|
||||
|
@ -1359,8 +1359,7 @@ main(int argc, char **argv)
|
|||
|
||||
while(status == RUN)
|
||||
{
|
||||
while((ev = xcb_wait_for_event(globalconf.connection)))
|
||||
{
|
||||
ev = xcb_wait_for_event(globalconf.connection);
|
||||
/* Skip errors */
|
||||
if(ev->response_type == 0)
|
||||
continue;
|
||||
|
@ -1380,10 +1379,8 @@ main(int argc, char **argv)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
p_delete(&ev);
|
||||
}
|
||||
}
|
||||
|
||||
if(status != CANCEL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue