support initial on-all-workspaces setting

2001-10-24  Havoc Pennington  <hp@pobox.com>

	* src/window.c (meta_window_new): support initial
	on-all-workspaces setting
This commit is contained in:
Havoc Pennington 2001-10-25 01:39:36 +00:00 committed by Havoc Pennington
parent 85a01b3945
commit 2af36b1e56
2 changed files with 20 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2001-10-24 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_new): support initial
on-all-workspaces setting
2001-10-22 Havoc Pennington <hp@pobox.com> 2001-10-22 Havoc Pennington <hp@pobox.com>
* src/stack.c (meta_stack_sync_to_server): fix to keep desktop * src/stack.c (meta_stack_sync_to_server): fix to keep desktop

View File

@ -427,13 +427,21 @@ meta_window_new (MetaDisplay *display, Window xwindow,
if (window->initial_workspace_set) if (window->initial_workspace_set)
{ {
space = if (window->initial_workspace == 0xFFFFFFFF)
meta_display_get_workspace_by_screen_index (window->display, {
window->screen, meta_workspace_add_window (window->screen->active_workspace, window);
window->initial_workspace); window->on_all_workspaces = TRUE;
}
if (space) else
meta_workspace_add_window (space, window); {
space =
meta_display_get_workspace_by_screen_index (window->display,
window->screen,
window->initial_workspace);
if (space)
meta_workspace_add_window (space, window);
}
} }
if (window->workspaces == NULL && if (window->workspaces == NULL &&