mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50: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>
|
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
|
||||||
|
20
src/window.c
20
src/window.c
@ -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;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
space =
|
||||||
|
meta_display_get_workspace_by_screen_index (window->display,
|
||||||
|
window->screen,
|
||||||
|
window->initial_workspace);
|
||||||
|
|
||||||
if (space)
|
if (space)
|
||||||
meta_workspace_add_window (space, window);
|
meta_workspace_add_window (space, window);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window->workspaces == NULL &&
|
if (window->workspaces == NULL &&
|
||||||
|
Loading…
Reference in New Issue
Block a user