Skip to content

Commit

Permalink
Revert "xcb: Steal focus in O-R mode"
Browse files Browse the repository at this point in the history
This reverts commit 1c9d975.

Fixes: davatorium#1228
  • Loading branch information
DaveDavenport committed Dec 9, 2020
1 parent 1c9d975 commit ec858dd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions source/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -1894,13 +1894,6 @@ RofiViewState *rofi_view_create ( Mode *sw,
xcb_map_window ( xcb->connection, CacheState.main_window );
widget_queue_redraw ( WIDGET ( state->main_window ) );
xcb_flush ( xcb->connection );

/* When Override Redirect, the WM will not let us know we can take focus, so just steal it */
if ( ( ( menu_flags & MENU_NORMAL_WINDOW ) == 0 ) ) {
xcb_set_input_focus ( xcb->connection, XCB_INPUT_FOCUS_NONE, CacheState.main_window, XCB_CURRENT_TIME );
xcb_flush ( xcb->connection );
}

if ( xcb->sncontext != NULL ) {
sn_launchee_context_complete ( xcb->sncontext );
}
Expand Down

0 comments on commit ec858dd

Please sign in to comment.