mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +00:00
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
This commit is contained in:
parent
52e52c7e90
commit
3290c398f4
1 changed files with 6 additions and 5 deletions
|
|
@ -87,7 +87,7 @@ void TaskPanel::initWayland()
|
||||||
);
|
);
|
||||||
connect(registry, &Registry::plasmaShellAnnounced, this,
|
connect(registry, &Registry::plasmaShellAnnounced, this,
|
||||||
[this, registry] (quint32 name, quint32 version) {
|
[this, registry] (quint32 name, quint32 version) {
|
||||||
|
|
||||||
m_shellInterface = registry->createPlasmaShell(name, version, this);
|
m_shellInterface = registry->createPlasmaShell(name, version, this);
|
||||||
|
|
||||||
if (!m_panel) {
|
if (!m_panel) {
|
||||||
|
|
@ -98,6 +98,7 @@ void TaskPanel::initWayland()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_shellSurface = m_shellInterface->createSurface(s, this);
|
m_shellSurface = m_shellInterface->createSurface(s, this);
|
||||||
|
m_shellSurface->setSkipTaskbar(true);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
registry->setup();
|
registry->setup();
|
||||||
|
|
@ -118,15 +119,15 @@ void TaskPanel::setPanel(QWindow *panel)
|
||||||
m_panel = panel;
|
m_panel = panel;
|
||||||
emit panelChanged();
|
emit panelChanged();
|
||||||
|
|
||||||
if (!m_shellSurface) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Surface *s = Surface::fromWindow(panel);
|
Surface *s = Surface::fromWindow(panel);
|
||||||
if (!s) {
|
if (!s) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_shellSurface = m_shellInterface->createSurface(s, this);
|
m_shellSurface = m_shellInterface->createSurface(s, this);
|
||||||
|
if (m_shellSurface) {
|
||||||
|
m_shellSurface->setSkipTaskbar(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TaskPanel::updateActiveWindow()
|
void TaskPanel::updateActiveWindow()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue