diff options
author | Rob Adams <readams@readams.net> | 2004-02-28 02:53:56 +0000 |
---|---|---|
committer | Rob Adams <readams@src.gnome.org> | 2004-02-28 02:53:56 +0000 |
commit | 16a8add6f80eaa804315cae03d4a640d878dbeca (patch) | |
tree | 14bea29f2e57aff02f6708de929b5ca99ec2bb64 /src/workspace.c | |
parent | 036a61d19810ef2b3c164f148e72d3f60b2dd199 (diff) | |
download | metacity-16a8add6f80eaa804315cae03d4a640d878dbeca.tar.gz |
only move on MRU list if the window belongs on the workspace, since the
2004-02-27 Rob Adams <readams@readams.net>
* src/window.c (meta_window_notify_focus): only move on MRU list
if the window belongs on the workspace, since the FocusIn event
could be for a window whose workspace we've since switched away
from. Possible fix for #122016.
* src/workspace.c (meta_workspace_contains_window): search for the
workspace in window->workspaces rather than the window in
workspace->windows. Since the number of workspaces is at most 36,
this is a O(1) lookup rather than a O(n) lookup. Sorry; couldn't
resist.
Diffstat (limited to 'src/workspace.c')
-rw-r--r-- | src/workspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/workspace.c b/src/workspace.c index 9d69af69..83c642c9 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -240,7 +240,7 @@ gboolean meta_workspace_contains_window (MetaWorkspace *workspace, MetaWindow *window) { - return g_list_find (workspace->windows, window) != NULL; + return g_list_find (window->workspaces, workspace) != NULL; } void |