Skip to content

Commit 0990829

Browse files
committed
DesktopSwitch: remove unused isWindowHighlightable()
1 parent 8b78add commit 0990829

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

plugin-desktopswitch/desktopswitch.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void DesktopSwitch::shortcutRegistered()
123123

124124
void DesktopSwitch::onWindowChanged(WId id, int prop)
125125
{
126-
if (prop == int(LXQtTaskBarWindowProperty::State) && isWindowHighlightable(id))
126+
if (prop == int(LXQtTaskBarWindowProperty::State))
127127
{
128128
int desktop = mBackend->getWindowWorkspace(id);
129129
if (desktop == int(LXQtTaskBarWorkspace::ShowOnAll))
@@ -179,13 +179,6 @@ void DesktopSwitch::refresh()
179179
}
180180
}
181181

182-
bool DesktopSwitch::isWindowHighlightable(WId)
183-
{
184-
// Backend should emit signals only for higlightable windows and ignore others
185-
// TODO: check
186-
return true;
187-
}
188-
189182
DesktopSwitch::~DesktopSwitch() = default;
190183

191184
void DesktopSwitch::setDesktop(int desktop)

plugin-desktopswitch/desktopswitch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ class DesktopSwitch : public QObject, public ILXQtPanelPlugin
8787
DesktopSwitchButton::LabelType mLabelType;
8888

8989
void refresh();
90-
bool isWindowHighlightable(WId window);
9190

9291
private slots:
9392
void setDesktop(int desktop);

0 commit comments

Comments
 (0)