diff --git a/src/layershellv1window.cpp b/src/layershellv1window.cpp index f01e2ac385..d8fe017f30 100644 --- a/src/layershellv1window.cpp +++ b/src/layershellv1window.cpp @@ -58,8 +58,6 @@ LayerShellV1Window::LayerShellV1Window(LayerSurfaceV1Interface *shellSurface, this, &LayerShellV1Window::scheduleRearrange); connect(output, &Output::enabledChanged, this, &LayerShellV1Window::handleOutputEnabledChanged); - connect(output, &Output::destroyed, - this, &LayerShellV1Window::handleOutputDestroyed); connect(shellSurface->surface(), &SurfaceInterface::sizeChanged, this, &LayerShellV1Window::handleSizeChanged); @@ -180,6 +178,7 @@ void LayerShellV1Window::destroyWindow() } m_shellSurface->disconnect(this); m_shellSurface->surface()->disconnect(this); + m_desiredOutput->disconnect(this); markAsDeleted(); cleanTabBox(); @@ -279,12 +278,6 @@ void LayerShellV1Window::handleOutputEnabledChanged() } } -void LayerShellV1Window::handleOutputDestroyed() -{ - closeWindow(); - destroyWindow(); -} - void LayerShellV1Window::setVirtualKeyboardGeometry(const QRectF &geo) { if (m_virtualKeyboardGeometry == geo) { diff --git a/src/layershellv1window.h b/src/layershellv1window.h index fa82e61eea..f2c5aa2da2 100644 --- a/src/layershellv1window.h +++ b/src/layershellv1window.h @@ -60,7 +60,6 @@ private: void handleCommitted(); void handleAcceptsFocusChanged(); void handleOutputEnabledChanged(); - void handleOutputDestroyed(); void scheduleRearrange(); void activateScreenEdge(); void deactivateScreenEdge();