mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +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,
|
||||
[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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue