1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

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

View file

@ -1570,12 +1570,12 @@ static void rofi_view_mainloop_iter ( RofiViewState *state, xcb_generic_event_t
switch ( ev->response_type & ~0x80 ) switch ( ev->response_type & ~0x80 )
{ {
case XCB_FOCUS_IN: case XCB_FOCUS_IN:
if ( ( state->menu_flags & MENU_NORMAL_WINDOW ) == 0 ) { if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == 0 ) {
take_keyboard ( CacheState.main_window ); take_keyboard ( CacheState.main_window );
} }
break; break;
case XCB_FOCUS_OUT: case XCB_FOCUS_OUT:
if ( ( state->menu_flags & MENU_NORMAL_WINDOW ) == 0 ) { if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == 0 ) {
release_keyboard ( ); release_keyboard ( );
} }
break; break;