From 7e6aede0af4db55a2db687bae64f5ffdbf05e92f Mon Sep 17 00:00:00 2001 From: Denis Gorodnichev Date: Fri, 24 Feb 2023 22:12:07 +0200 Subject: fix switch-windows-all hotkey pass focus to window if it is on another workspace --- src/core/keybindings.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/core/keybindings.c') diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 45be2353..812a8c12 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2106,8 +2106,6 @@ process_tab_grab (MetaDisplay *display, target_window->desc); display->mouse_mode = FALSE; meta_window_activate (target_window, event->xkey.time); - if (!target_window->on_all_workspaces) - meta_workspace_activate (target_window->workspace, event->xkey.time); meta_topic (META_DEBUG_KEYBINDINGS, "Ending grab early so we can focus the target window\n"); @@ -3081,8 +3079,6 @@ do_choose_window (MetaDisplay *display, initial_selection->desc); display->mouse_mode = FALSE; meta_window_activate (initial_selection, event->xkey.time); - if (!initial_selection->on_all_workspaces) - meta_workspace_activate (initial_selection->workspace, event->xkey.time); } else if (meta_display_begin_grab_op (display, screen, @@ -3112,8 +3108,6 @@ do_choose_window (MetaDisplay *display, meta_display_end_grab_op (display, event->xkey.time); display->mouse_mode = FALSE; meta_window_activate (initial_selection, event->xkey.time); - if (!initial_selection->on_all_workspaces) - meta_workspace_activate (initial_selection->workspace, event->xkey.time); } else { -- cgit v1.2.1