summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2005-10-08 23:18:05 +0000
committerElijah Newren <newren@src.gnome.org>2005-10-08 23:18:05 +0000
commit7ef871f73a2b3187d8d6b25f7b212161ecb4e683 (patch)
tree837a373bfcbe543f3b521645932e55c53ad8b200
parent29e38a2f5363f55343c770b869d36ffd38891465 (diff)
downloadmetacity-7ef871f73a2b3187d8d6b25f7b212161ecb4e683.tar.gz
Fix a crash that occurs when removing some virtual desktops and windows
2005-10-08 Elijah Newren <newren@gmail.com> Fix a crash that occurs when removing some virtual desktops and windows happen to be on those desktops. #318306. * src/workspace.c (meta_workspace_relocate_windows): Since windows cannot be on more than one workspace at a time, remove the window from the old workspace before adding it to the new one.
-rw-r--r--ChangeLog9
-rw-r--r--src/workspace.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7af54c09..bf4700fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2005-10-08 Elijah Newren <newren@gmail.com>
+ Fix a crash that occurs when removing some virtual desktops and
+ windows happen to be on those desktops. #318306.
+
+ * src/workspace.c (meta_workspace_relocate_windows): Since windows
+ cannot be on more than one workspace at a time, remove the window
+ from the old workspace before adding it to the new one.
+
+2005-10-08 Elijah Newren <newren@gmail.com>
+
Add my copyright notice to a number of files on which it should
already exist.
diff --git a/src/workspace.c b/src/workspace.c
index 0ed5d2fe..70f6ebdf 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -237,8 +237,8 @@ meta_workspace_relocate_windows (MetaWorkspace *workspace,
{
MetaWindow *window = tmp->data;
- meta_workspace_add_window (new_home, window);
meta_workspace_remove_window (workspace, window);
+ meta_workspace_add_window (new_home, window);
tmp = tmp->next;
}