From 43be4bd18f9f75f5436356d6ab429e67eec21a8a Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 6 Sep 2016 09:05:30 +0200 Subject: [PATCH] Fix keyboard grab normal-window mode --- source/view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/view.c b/source/view.c index 263e4131..fea6d718 100644 --- a/source/view.c +++ b/source/view.c @@ -1570,12 +1570,12 @@ static void rofi_view_mainloop_iter ( RofiViewState *state, xcb_generic_event_t switch ( ev->response_type & ~0x80 ) { case XCB_FOCUS_IN: - if ( ( state->menu_flags & MENU_NORMAL_WINDOW ) == 0 ) { + if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == 0 ) { take_keyboard ( CacheState.main_window ); } break; case XCB_FOCUS_OUT: - if ( ( state->menu_flags & MENU_NORMAL_WINDOW ) == 0 ) { + if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == 0 ) { release_keyboard ( ); } break;