Remove code that updates the focus chain in Window::setSkipTaskbar()

skipsTaskbar() doesn't influence whether the window wants input.
This commit is contained in:
Vlad Zahorodnii 2024-06-17 18:00:51 +03:00
parent 0fc6c6800e
commit 7fca508619

View file

@ -453,16 +453,12 @@ void Window::doSetSkipPager()
void Window::setSkipTaskbar(bool b)
{
int was_wants_tab_focus = wantsTabFocus();
if (b == skipTaskbar()) {
return;
}
m_skipTaskbar = b;
doSetSkipTaskbar();
updateWindowRules(Rules::SkipTaskbar);
if (was_wants_tab_focus != wantsTabFocus()) {
Workspace::self()->focusChain()->update(this, isActive() ? FocusChain::MakeFirst : FocusChain::Update);
}
Q_EMIT skipTaskbarChanged();
}