diff --git a/declarativeimports/plasmacomponents/fullscreenwindow.cpp b/declarativeimports/plasmacomponents/fullscreenwindow.cpp index 35d23aae5..231b591d3 100644 --- a/declarativeimports/plasmacomponents/fullscreenwindow.cpp +++ b/declarativeimports/plasmacomponents/fullscreenwindow.cpp @@ -78,6 +78,7 @@ public: void mouseReleaseEvent(QMouseEvent *event) { if (!m_dialog->view()->geometry().contains(event->globalPos())) { + emit m_dialog->clickedOutside(); m_dialog->close(); } } diff --git a/declarativeimports/plasmacomponents/fullscreenwindow.h b/declarativeimports/plasmacomponents/fullscreenwindow.h index c1a378604..1f0eb225e 100644 --- a/declarativeimports/plasmacomponents/fullscreenwindow.h +++ b/declarativeimports/plasmacomponents/fullscreenwindow.h @@ -96,6 +96,7 @@ private: QList m_dummyTitleElements; QList m_dummyContentElements; QList m_dummyButtonsElements; + friend class Background; }; #endif