From cc3c995d80b2af0cb51ae9386c9215e54a09007c Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 25 May 2002 02:33:55 +0000 Subject: [PATCH] follow windows to their new workspace 2002-05-24 Havoc Pennington * src/window.c (menu_callback): follow windows to their new workspace * src/keybindings.c (handle_move_to_workspace): follow windows to their new workspace --- ChangeLog | 8 ++++++++ src/keybindings.c | 2 ++ src/window.c | 7 +++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 932d1d39d..d25eb2959 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-05-24 Havoc Pennington + + * src/window.c (menu_callback): follow windows to their new + workspace + + * src/keybindings.c (handle_move_to_workspace): follow windows to + their new workspace + 2002-05-24 Havoc Pennington * src/metacity.schemas: add minimize window binding diff --git a/src/keybindings.c b/src/keybindings.c index 1aa924b89..5ae2f2711 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -1692,7 +1692,9 @@ handle_move_to_workspace (MetaDisplay *display, if (workspace) { + /* Activate second, so the window is never unmapped */ meta_window_change_workspace (window, workspace); + meta_workspace_activate (workspace); } else { diff --git a/src/window.c b/src/window.c index d4c2c5b49..c7843486f 100644 --- a/src/window.c +++ b/src/window.c @@ -5263,8 +5263,11 @@ menu_callback (MetaWindowMenu *menu, workspace_index); if (workspace) - meta_window_change_workspace (window, - workspace); + { + meta_window_change_workspace (window, + workspace); + meta_workspace_activate (workspace); + } else meta_warning ("Workspace %d doesn't exist\n", workspace_index); }