Fix keyboard grab normal-window mode

This commit is contained in:
Dave Davenport 2016-09-06 09:05:30 +02:00
parent 926fbdb190
commit 43be4bd18f
1 changed files with 2 additions and 2 deletions

View File

@ -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;