Make the Keyboard Layout SNI passive

Summary:
This one only appears on wayland and doesn't offer much functionality.
On the extended part of the system tray at least we'll know what it is.

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D20369
This commit is contained in:
Aleix Pol 2019-04-08 02:34:24 +02:00
parent 3d46801e5f
commit 21a62f0b38

View file

@ -115,7 +115,7 @@ void KeyboardLayout::initNotifierItem()
m_notifierItem = new KStatusNotifierItem(this); m_notifierItem = new KStatusNotifierItem(this);
m_notifierItem->setCategory(KStatusNotifierItem::Hardware); m_notifierItem->setCategory(KStatusNotifierItem::Hardware);
m_notifierItem->setStatus(KStatusNotifierItem::Active); m_notifierItem->setStatus(KStatusNotifierItem::Passive);
m_notifierItem->setToolTipTitle(i18nc("tooltip title", "Keyboard Layout")); m_notifierItem->setToolTipTitle(i18nc("tooltip title", "Keyboard Layout"));
m_notifierItem->setTitle(i18nc("tooltip title", "Keyboard Layout")); m_notifierItem->setTitle(i18nc("tooltip title", "Keyboard Layout"));
m_notifierItem->setToolTipIconByName(QStringLiteral("preferences-desktop-keyboard")); m_notifierItem->setToolTipIconByName(QStringLiteral("preferences-desktop-keyboard"));
@ -137,8 +137,6 @@ void KeyboardLayout::initNotifierItem()
} }
} }
); );
m_notifierItem->setStatus(KStatusNotifierItem::Active);
} }
void KeyboardLayout::switchToNextLayout() void KeyboardLayout::switchToNextLayout()