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:
Bhushan Shah 2016-08-25 15:29:48 +05:30
parent 52e52c7e90
commit 3290c398f4

View file

@ -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()