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

@ -426,6 +426,13 @@ meta_window_new (MetaDisplay *display, Window xwindow,
*/ */
if (window->initial_workspace_set) if (window->initial_workspace_set)
{
if (window->initial_workspace == 0xFFFFFFFF)
{
meta_workspace_add_window (window->screen->active_workspace, window);
window->on_all_workspaces = TRUE;
}
else
{ {
space = space =
meta_display_get_workspace_by_screen_index (window->display, meta_display_get_workspace_by_screen_index (window->display,
@ -435,6 +442,7 @@ meta_window_new (MetaDisplay *display, Window xwindow,
if (space) if (space)
meta_workspace_add_window (space, window); meta_workspace_add_window (space, window);
} }
}
if (window->workspaces == NULL && if (window->workspaces == NULL &&
window->xtransient_for != None) window->xtransient_for != None)