mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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:
parent
85a01b3945
commit
2af36b1e56
@ -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>
|
||||
|
||||
* src/stack.c (meta_stack_sync_to_server): fix to keep desktop
|
||||
|
22
src/window.c
22
src/window.c
@ -427,13 +427,21 @@ meta_window_new (MetaDisplay *display, Window xwindow,
|
||||
|
||||
if (window->initial_workspace_set)
|
||||
{
|
||||
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->initial_workspace == 0xFFFFFFFF)
|
||||
{
|
||||
meta_workspace_add_window (window->screen->active_workspace, window);
|
||||
window->on_all_workspaces = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user