summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-02-14 15:36:29 +0100
committerKai Uwe Broulik <[email protected]>2017-02-14 15:36:29 +0100
commitd67aea401703517340ea3d9744ab64cb5c3e853e (patch)
tree4c62773f5f95aac1fe7d19652b58eb64b521fbf9
parent034bf808787540bfae4facee15a54bac15c3cf71 (diff)
[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
-rw-r--r--shell/panelview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/panelview.cpp b/shell/panelview.cpp
index f5a1ede..1b2f641 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);
}