diff options
author | Rob Adams <readams@src.gnome.org> | 2003-12-13 23:00:06 +0000 |
---|---|---|
committer | Rob Adams <readams@src.gnome.org> | 2003-12-13 23:00:06 +0000 |
commit | 9bde925d3da2d0a9c1a46bf41fd3b0755b917276 (patch) | |
tree | d3bb617f446545398dc4da43e92c01778daaac1b /src/workspace.c | |
parent | 7630d22b8d791cf2718e1018b2bffcd672fa3cfa (diff) | |
download | metacity-9bde925d3da2d0a9c1a46bf41fd3b0755b917276.tar.gz |
Revert prior change
Diffstat (limited to 'src/workspace.c')
-rw-r--r-- | src/workspace.c | 45 |
1 files changed, 3 insertions, 42 deletions
diff --git a/src/workspace.c b/src/workspace.c index 415b0471..e8a820df 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -112,30 +112,11 @@ meta_workspace_add_window (MetaWorkspace *workspace, { g_return_if_fail (!meta_workspace_contains_window (workspace, window)); - /* If the window is on all workspaces, we want to add it to all mru - * lists, otherwise just add it to this workspaces mru list - */ - if (window->on_all_workspaces) - { - if (g_list_length (window->workspaces) == 0) - { - GList* tmp = window->screen->workspaces; - while (tmp) - { - MetaWorkspace* work = (MetaWorkspace*) tmp->data; - if (!g_list_find (work->mru_list, window)) - work->mru_list = g_list_append (work->mru_list, window); - - tmp = tmp->next; - } - } - } - else if (!g_list_find (workspace->mru_list, window)) - workspace->mru_list = g_list_prepend (workspace->mru_list, window); - workspace->windows = g_list_prepend (workspace->windows, window); window->workspaces = g_list_prepend (window->workspaces, workspace); + workspace->mru_list = g_list_append (workspace->mru_list, window); + meta_window_set_current_workspace_hint (window); meta_window_queue_calc_showing (window); @@ -161,27 +142,7 @@ meta_workspace_remove_window (MetaWorkspace *workspace, workspace->windows = g_list_remove (workspace->windows, window); window->workspaces = g_list_remove (window->workspaces, workspace); - - /* If the window is on all workspaces, we don't want to remove it - * from the MRU list unless this causes it to be removed from all - * workspaces - */ - if (window->on_all_workspaces) - { - if (g_list_length (window->workspaces) == 0) - { - GList* tmp = window->screen->workspaces; - while (tmp) - { - MetaWorkspace* work = (MetaWorkspace*) tmp->data; - work->mru_list = g_list_remove (work->mru_list, window); - - tmp = tmp->next; - } - } - } - else - workspace->mru_list = g_list_remove (workspace->mru_list, window); + workspace->mru_list = g_list_remove (workspace->mru_list, window); meta_window_set_current_workspace_hint (window); |