From d67aea401703517340ea3d9744ab64cb5c3e853e Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 14 Feb 2017 15:36:29 +0100 Subject: [PATCH] [PanelView] Emit availableScreenRegionChanged in resizeEvent, not when setting a new length The panel length might not actually change depending on minimum and maximum size constraints and this is the wrong place to do this in the first place. Differential Revision: https://phabricator.kde.org/D4590 --- shell/panelview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/panelview.cpp b/shell/panelview.cpp index f5a1edee8..1b2f6416c 100644 --- a/shell/panelview.cpp +++ b/shell/panelview.cpp @@ -228,7 +228,6 @@ void PanelView::setLength(int value) m_contentLength = value; resizePanel(); - emit m_corona->availableScreenRegionChanged(); } int PanelView::maximumLength() const @@ -708,6 +707,8 @@ void PanelView::resizeEvent(QResizeEvent *ev) m_shellSurface->setPosition(pos); } m_strutsTimer.start(STRUTSTIMERDELAY); + emit m_corona->availableScreenRegionChanged(); + PlasmaQuick::ContainmentView::resizeEvent(ev); }