From ec858dd305ef843e45998860f67af8524dc42fef Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Wed, 9 Dec 2020 16:04:04 +0100 Subject: Revert "xcb: Steal focus in O-R mode" This reverts commit 1c9d975dd2aff1794c6484465482c796c41a1358. Fixes: #1228 --- source/view.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/view.c b/source/view.c index 0cd146a4..0ebcd4bd 100644 --- a/source/view.c +++ b/source/view.c @@ -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 ); } -- cgit v1.2.3