follow windows to their new workspace

2002-05-24  Havoc Pennington  <hp@pobox.com>

	* src/window.c (menu_callback): follow windows to their new
	workspace

	* src/keybindings.c (handle_move_to_workspace): follow windows to
	their new workspace
This commit is contained in:
Havoc Pennington 2002-05-25 02:33:55 +00:00 committed by Havoc Pennington
parent a4fe1ad960
commit cc3c995d80
3 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2002-05-24 Havoc Pennington <hp@pobox.com>
* 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 <hp@pobox.com> 2002-05-24 Havoc Pennington <hp@pobox.com>
* src/metacity.schemas: add minimize window binding * src/metacity.schemas: add minimize window binding

View File

@ -1692,7 +1692,9 @@ handle_move_to_workspace (MetaDisplay *display,
if (workspace) if (workspace)
{ {
/* Activate second, so the window is never unmapped */
meta_window_change_workspace (window, workspace); meta_window_change_workspace (window, workspace);
meta_workspace_activate (workspace);
} }
else else
{ {

View File

@ -5263,8 +5263,11 @@ menu_callback (MetaWindowMenu *menu,
workspace_index); workspace_index);
if (workspace) if (workspace)
meta_window_change_workspace (window, {
workspace); meta_window_change_workspace (window,
workspace);
meta_workspace_activate (workspace);
}
else else
meta_warning ("Workspace %d doesn't exist\n", workspace_index); meta_warning ("Workspace %d doesn't exist\n", workspace_index);
} }