[PanelView] remove outdated hack to support mask without compositing

Summary:
The actual mask is now queried from the panel, there is no more need
for this.

Reviewers: #plasma, mart

Reviewed By: #plasma, mart

Subscribers: davidedmundson, mvourlakos, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21013
parent b51fd4ba
......@@ -63,7 +63,6 @@ PanelView::PanelView(ShellCorona *corona, QScreen *targetScreen, QWindow *parent
m_alignment(Qt::AlignLeft),
m_corona(corona),
m_visibilityMode(NormalPanel),
m_background(nullptr),
m_backgroundHints(Plasma::Types::StandardBackground),
m_shellSurface(nullptr)
{
......@@ -962,22 +961,6 @@ void PanelView::updateMask()
}
}
// old hack for non-compositing:
// assuming the desktoptheme uses "widgets/panel-background" for the panel
// before "panelMask" was added to expected property set of panel objects
// TODO: understand if still needed
if (mask.isEmpty() && !KWindowSystem::compositingActive()) {
if (!m_background) {
m_background = new Plasma::FrameSvg(this);
m_background->setImagePath(QStringLiteral("widgets/panel-background"));
}
m_background->setEnabledBorders(enabledBorders());
m_background->resizeFrame(size());
mask = m_background->mask();
}
setMask(mask);
}
......
......@@ -230,8 +230,6 @@ private:
Plasma::Theme m_theme;
QTimer m_positionPaneltimer;
QTimer m_unhideTimer;
//only for the mask, not to actually paint
Plasma::FrameSvg *m_background;
Plasma::Types::BackgroundHints m_backgroundHints;
Plasma::FrameSvg::EnabledBorders m_enabledBorders = Plasma::FrameSvg::AllBorders;
KWayland::Client::PlasmaShellSurface *m_shellSurface;
......
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