[PanelView] Update mask as last on resize event (& move one for consistency)

Summary:
The mask of a panel depends on things like borders set or window size,
but nothing else on it. So it should be updated as last in the queue of
things to update.
There might be still state changes not properly propagated, but this is
a move in the more expected direction.

Reviewers: #plasma, broulik

Reviewed By: #plasma, broulik

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21012
parent 93bdcda4
......@@ -712,7 +712,6 @@ void PanelView::setAutoHideEnabled(bool enabled)
void PanelView::resizeEvent(QResizeEvent *ev)
{
updateMask();
updateEnabledBorders();
//don't setGeometry() to make really sure we aren't doing a resize loop
const QPoint pos = geometryByDistance(m_distance).topLeft();
......@@ -724,14 +723,16 @@ void PanelView::resizeEvent(QResizeEvent *ev)
emit m_corona->availableScreenRegionChanged();
PlasmaQuick::ContainmentView::resizeEvent(ev);
updateMask();
}
void PanelView::moveEvent(QMoveEvent *ev)
{
updateMask();
updateEnabledBorders();
m_strutsTimer.start(STRUTSTIMERDELAY);
PlasmaQuick::ContainmentView::moveEvent(ev);
updateMask();
}
void PanelView::integrateScreen()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment