windowManager: Skip disposed windows in _switchWorkspaceDone
Avoid reparenting already disposed windows. https://bugzilla.gnome.org/show_bug.cgi?id=639853
This commit is contained in:
parent
c74536c9b3
commit
4c449124ee
@ -497,6 +497,8 @@ WindowManager.prototype = {
|
||||
|
||||
for (let i = 0; i < switchData.windows.length; i++) {
|
||||
let w = switchData.windows[i];
|
||||
if (w.window.is_destroyed()) // Window gone
|
||||
continue;
|
||||
if (w.window.get_parent() == switchData.outGroup) {
|
||||
w.window.reparent(w.parent);
|
||||
w.window.hide();
|
||||
|
Loading…
Reference in New Issue
Block a user