Don't release keyboard on FOCUS-out event.. for some reason we do not always get focus-in event

This commit is contained in:
Dave Davenport 2017-01-19 19:12:28 +01:00
parent 0825479710
commit be9ae4490c

View file

@ -1380,16 +1380,6 @@ void rofi_view_itterrate ( RofiViewState *state, xcb_generic_event_t *ev, xkb_st
}
break;
}
case XCB_FOCUS_IN:
if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == 0 ) {
take_keyboard ( CacheState.main_window, 1 );
}
break;
case XCB_FOCUS_OUT:
if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == 0 ) {
release_keyboard ( );
}
break;
case XCB_MOTION_NOTIFY:
{
if ( config.click_to_exit == TRUE ) {