Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 3290c398 authored by Bhushan Shah's avatar Bhushan Shah 📱

Fix task switcher showing in itself

This was two part issue,

- We never applied skipTaskbar flag
- We returned from function before creating surface for it.

Reviewed-by: notmart
parent 52e52c7e
......@@ -87,7 +87,7 @@ void TaskPanel::initWayland()
);
connect(registry, &Registry::plasmaShellAnnounced, this,
[this, registry] (quint32 name, quint32 version) {
m_shellInterface = registry->createPlasmaShell(name, version, this);
if (!m_panel) {
......@@ -98,6 +98,7 @@ void TaskPanel::initWayland()
return;
}
m_shellSurface = m_shellInterface->createSurface(s, this);
m_shellSurface->setSkipTaskbar(true);
}
);
registry->setup();
......@@ -118,15 +119,15 @@ void TaskPanel::setPanel(QWindow *panel)
m_panel = panel;
emit panelChanged();
if (!m_shellSurface) {
return;
}
Surface *s = Surface::fromWindow(panel);
if (!s) {
return;
}
m_shellSurface = m_shellInterface->createSurface(s, this);
if (m_shellSurface) {
m_shellSurface->setSkipTaskbar(true);
}
}
void TaskPanel::updateActiveWindow()
......
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