diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-06 00:12:56 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-06 00:12:56 +0200 |
commit | c489e0f9e117b70c66c128a37b7b0fb4dd1e6bea (patch) | |
tree | 295a6b9bfdaed44e492d2e3ed104ce38d60612bb /plugins/hotkeys | |
parent | 2a254c59057894557e992f4cc139657416bb87d9 (diff) |
fixed hotkeys message queue
Diffstat (limited to 'plugins/hotkeys')
-rw-r--r-- | plugins/hotkeys/hotkeys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/hotkeys/hotkeys.c b/plugins/hotkeys/hotkeys.c index 3972dd5c..dd37d07c 100644 --- a/plugins/hotkeys/hotkeys.c +++ b/plugins/hotkeys/hotkeys.c @@ -266,7 +266,7 @@ hotkeys_event_loop( uintptr_t unused ) { while (!finished) { XEvent event; - if ( XPending( disp ) ) + while ( XPending( disp ) ) { XNextEvent( disp, &event ); @@ -281,8 +281,7 @@ hotkeys_event_loop( uintptr_t unused ) { } } } - else - usleep( 200 * 1000 ); + usleep( 200 * 1000 ); } } |