diff options
author | Rob Adams <readams@readams.net> | 2003-09-20 17:05:35 +0000 |
---|---|---|
committer | Rob Adams <readams@src.gnome.org> | 2003-09-20 17:05:35 +0000 |
commit | dc40522ea7e7ed07dbe466214b0706fb9375df1e (patch) | |
tree | a9af363f55bee7bd707c23556485d1a378a79bee | |
parent | de44b2d7949e63f8cef9f749c24e0f7bcef3ff89 (diff) | |
download | metacity-dc40522ea7e7ed07dbe466214b0706fb9375df1e.tar.gz |
Fix bug where multiple entries could appear in MRU lists, or no entry when
2003-09-20 Rob Adams <readams@readams.net>
Fix bug where multiple entries could appear in MRU lists, or no
entry when sticking/unsticking windows. Fix for #122016
* src/window.c (meta_window_stick): use window->screen->workspaces
instead of window->workspaces.
(meta_window_unstick): use window->screen->workspaces instead of
window->workspaces.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | src/window.c | 4 |
2 files changed, 12 insertions, 2 deletions
@@ -1,3 +1,13 @@ +2003-09-20 Rob Adams <readams@readams.net> + + Fix bug where multiple entries could appear in MRU lists, or no + entry when sticking/unsticking windows. Fix for #122016 + + * src/window.c (meta_window_stick): use window->screen->workspaces + instead of window->workspaces. + (meta_window_unstick): use window->screen->workspaces instead of + window->workspaces. + 2003-09-19 Rob Adams <readams@readams.net> Fix a bug with partial-width panel struts caused by incorrect diff --git a/src/window.c b/src/window.c index 9799ef77..bb7894ca 100644 --- a/src/window.c +++ b/src/window.c @@ -3204,7 +3204,7 @@ meta_window_stick (MetaWindow *window) /* We do, however, change the MRU lists of all the workspaces */ - tmp = window->workspaces; + tmp = window->screen->workspaces; while (tmp) { workspace = (MetaWorkspace *) tmp->data; @@ -3233,7 +3233,7 @@ meta_window_unstick (MetaWindow *window) window->on_all_workspaces = FALSE; /* Remove window from MRU lists that it doesn't belong in */ - tmp = window->workspaces; + tmp = window->screen->workspaces; while (tmp) { workspace = (MetaWorkspace *) tmp->data; |