summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-10-25 01:39:36 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-10-25 01:39:36 +0000
commit2af36b1e56ab1196048fb3b427da2807ee4c68b8 (patch)
treea2f5eb7ad5bb4114086f107394c338ac071b1502 /src
parent85a01b39452c00f6432872766e2ddf572ec5b03c (diff)
downloadmetacity-2af36b1e56ab1196048fb3b427da2807ee4c68b8.tar.gz
metacity-2af36b1e56ab1196048fb3b427da2807ee4c68b8.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/window.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c
index ea0ed14..0005dbb 100644
--- a/src/window.c
+++ b/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 &&