From 0ee6f6db3f405c13c88f75760f88296560cf9fd6 Mon Sep 17 00:00:00 2001 From: Denis Gorodnichev Date: Sat, 28 Jun 2014 20:58:28 +0400 Subject: don't switch workspace when switching to sticky window Closes https://github.com/mate-desktop/marco/pull/121 Closes https://github.com/mate-desktop/marco/issues/18 --- src/core/keybindings.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 63e33059..9ddaf885 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2031,7 +2031,8 @@ process_tab_grab (MetaDisplay *display, target_window->desc); display->mouse_mode = FALSE; meta_window_activate (target_window, event->xkey.time); - meta_workspace_activate (target_window->workspace, 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"); @@ -2905,7 +2906,8 @@ do_choose_window (MetaDisplay *display, initial_selection->desc); display->mouse_mode = FALSE; meta_window_activate (initial_selection, event->xkey.time); - meta_workspace_activate (initial_selection->workspace, 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, @@ -2935,7 +2937,8 @@ 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); - meta_workspace_activate (initial_selection->workspace, event->xkey.time); + if (!initial_selection->on_all_workspaces) + meta_workspace_activate (initial_selection->workspace, event->xkey.time); } else { -- cgit v1.2.1