diff --git a/src/layershellv1window.cpp b/src/layershellv1window.cpp index 02f5ca32d7..7d6dd0b90b 100644 --- a/src/layershellv1window.cpp +++ b/src/layershellv1window.cpp @@ -218,7 +218,7 @@ Layer LayerShellV1Window::belongsToLayer() const bool LayerShellV1Window::acceptsFocus() const { - return m_shellSurface->acceptsFocus(); + return !isDeleted() && m_shellSurface->acceptsFocus(); } void LayerShellV1Window::moveResizeInternal(const QRectF &rect, MoveResizeMode mode)