diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-11-11 09:30:44 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-11-11 09:30:44 +0100 |
commit | e3af1efaef75dba3104edc2b75c99bb37cff2534 (patch) | |
tree | 3ad75a41a7eebd71f40cd8bf08a4db53b4302586 /source/keyb.c | |
parent | 0da5737ceebcb0eb565c3ed6aad469b3496eb6ee (diff) |
Fix crash when clicked out of window.
Diffstat (limited to 'source/keyb.c')
-rw-r--r-- | source/keyb.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/keyb.c b/source/keyb.c index 75ae45af..83befc39 100644 --- a/source/keyb.c +++ b/source/keyb.c @@ -187,11 +187,13 @@ void abe_trigger_release ( void ) KeyBindingAction action; state = rofi_view_get_active ( ); - for ( action = 0; action < NUM_ABE; ++action ) { - if ( _abe_trigger_on_release[action] ) { - rofi_view_trigger_action ( state, action ); - _abe_trigger_on_release[action] = FALSE; + if ( state ) { + for ( action = 0; action < NUM_ABE; ++action ) { + if ( _abe_trigger_on_release[action] ) { + rofi_view_trigger_action ( state, action ); + _abe_trigger_on_release[action] = FALSE; + } } + rofi_view_update ( state ); } - rofi_view_update ( state ); } |