mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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.
This commit is contained in:
parent
29e38a2f53
commit
7ef871f73a
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
2005-10-08 Elijah Newren <newren@gmail.com>
|
||||||
|
|
||||||
Add my copyright notice to a number of files on which it should
|
Add my copyright notice to a number of files on which it should
|
||||||
|
@ -237,8 +237,8 @@ meta_workspace_relocate_windows (MetaWorkspace *workspace,
|
|||||||
{
|
{
|
||||||
MetaWindow *window = tmp->data;
|
MetaWindow *window = tmp->data;
|
||||||
|
|
||||||
meta_workspace_add_window (new_home, window);
|
|
||||||
meta_workspace_remove_window (workspace, window);
|
meta_workspace_remove_window (workspace, window);
|
||||||
|
meta_workspace_add_window (new_home, window);
|
||||||
|
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user