summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2021-03-02 18:20:57 +0100
committerDave Davenport <qball@gmpclient.org>2021-03-02 18:20:57 +0100
commit20d236100f7dcf6ad6268ab69ba466bdda00c3f5 (patch)
treea3f34509742f852c0f5f571988858d33868cb855
parenteb544b48bc09dba39cd338a0b3a7b61cbc7ba555 (diff)
[window] do the focus_revert fix at the right place.
-rw-r--r--source/dialogs/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/dialogs/window.c b/source/dialogs/window.c
index c3e9edc0..73adf045 100644
--- a/source/dialogs/window.c
+++ b/source/dialogs/window.c
@@ -655,6 +655,8 @@ static ModeMode window_mode_result ( Mode *sw, int mretv, G_GNUC_UNUSED char **i
act_on_window ( rmpd->ids->array[selected_line] );
}
else {
+ // Disable reverting input focus to previous window.
+ xcb->focus_revert = 0;
rofi_view_hide ();
if ( ( current_window_manager & WM_DO_NOT_CHANGE_CURRENT_DESKTOP ) == 0 ) {
// Get the desktop of the client to switch to
@@ -687,7 +689,6 @@ static ModeMode window_mode_result ( Mode *sw, int mretv, G_GNUC_UNUSED char **i
}
}
// Activate the window
- xcb->focus_revert = 0;
xcb_ewmh_request_change_active_window ( &xcb->ewmh, xcb->screen_nbr, rmpd->ids->array[selected_line],
XCB_EWMH_CLIENT_SOURCE_TYPE_OTHER,
XCB_CURRENT_TIME, rofi_view_get_window () );