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:
Adel Gadllah 2011-01-18 19:25:00 +01:00
parent c74536c9b3
commit 4c449124ee

View File

@ -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();