From a7c344bbc5a8f00b68a63e0c333c0f10e8d7dede Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 3 May 2003 18:14:17 +0000 Subject: [PATCH] when moving window to another workspace, don't switch to that workspace. 2003-05-03 Havoc Pennington * src/keybindings.c (handle_move_to_workspace): when moving window to another workspace, don't switch to that workspace. * src/window.c (menu_callback): when moving window to another workspace, don't switch to that workspace. --- ChangeLog | 8 ++++++++ src/keybindings.c | 2 ++ src/window.c | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0c48e146f..0140a5032 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-05-03 Havoc Pennington + + * src/keybindings.c (handle_move_to_workspace): when moving + window to another workspace, don't switch to that workspace. + + * src/window.c (menu_callback): when moving window to another + workspace, don't switch to that workspace. + 2003-05-03 Havoc Pennington * configure.in: 2.5.1 diff --git a/src/keybindings.c b/src/keybindings.c index f9ce0f09d..8cdecd849 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -3012,7 +3012,9 @@ handle_move_to_workspace (MetaDisplay *display, { /* Activate second, so the window is never unmapped */ meta_window_change_workspace (window, workspace); +#if 0 meta_workspace_activate (workspace); +#endif } else { diff --git a/src/window.c b/src/window.c index 3aa017ae5..71a59063a 100644 --- a/src/window.c +++ b/src/window.c @@ -5435,10 +5435,12 @@ menu_callback (MetaWindowMenu *menu, if (workspace) { - meta_workspace_activate (workspace); meta_window_change_workspace (window, workspace); +#if 0 + meta_workspace_activate (workspace); meta_window_raise (window); +#endif } else meta_warning ("Workspace %d doesn't exist\n", workspace_index);