Prepend windows to mru list when switching workspaces. Fixes #134368

This commit is contained in:
Elijah Newren 2004-02-15 14:27:43 +00:00
parent fd13022dc4
commit 339719568f
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-02-14 Elijah Newren <newren@math.utah.edu
* src/workspace.c: When moving a window to a different workspace,
prepend it to the mru list insted of appending it. Fixes #134368.
2004-02-14 Rob Adams <readams@readams.net>
If we're moving a window and receive a _NET_CURRENT_DESKTOP

View File

@ -124,7 +124,7 @@ meta_workspace_add_window (MetaWorkspace *workspace,
{
MetaWorkspace* work = (MetaWorkspace*) tmp->data;
if (!g_list_find (work->mru_list, window))
work->mru_list = g_list_append (work->mru_list, window);
work->mru_list = g_list_prepend (work->mru_list, window);
tmp = tmp->next;
}
@ -133,7 +133,7 @@ meta_workspace_add_window (MetaWorkspace *workspace,
else
{
g_assert (g_list_find (workspace->mru_list, window) == NULL);
workspace->mru_list = g_list_append (workspace->mru_list, window);
workspace->mru_list = g_list_prepend (workspace->mru_list, window);
}
workspace->windows = g_list_prepend (workspace->windows, window);