diff --git a/src/layers.cpp b/src/layers.cpp index 45baa452d6..92ec81f06c 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -165,7 +165,7 @@ void Workspace::propagateWindows(bool propagate_new_windows) for (int i = stacking_order.size() - 1; i >= 0; --i) { X11Window *window = qobject_cast(stacking_order.at(i)); - if (!window || window->isUnmanaged() || window->hiddenPreview()) { + if (!window || window->isDeleted() || window->isUnmanaged() || window->hiddenPreview()) { continue; } @@ -182,7 +182,7 @@ void Workspace::propagateWindows(bool propagate_new_windows) // these windows that should be unmapped to interfere with other windows for (int i = stacking_order.size() - 1; i >= 0; --i) { X11Window *window = qobject_cast(stacking_order.at(i)); - if (!window || window->isUnmanaged() || !window->hiddenPreview()) { + if (!window || window->isDeleted() || window->isUnmanaged() || !window->hiddenPreview()) { continue; } newWindowStack << window->frameId();