Skip to content

Commit

Permalink
LXQtTaskbarX11Backend: fix re-add window after property changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgit committed May 10, 2024
1 parent 79ace78 commit 5e8966e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions panel/backends/xcb/lxqttaskbarbackend_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,18 @@ LXQtTaskbarX11Backend::LXQtTaskbarX11Backend(QObject *parent)
void LXQtTaskbarX11Backend::onWindowChanged(WId windowId, NET::Properties prop, NET::Properties2 prop2)
{
if(!m_windows.contains(windowId))
{
// If already known window changes its property in a way
// it's now acceptable, add it again to taskbar
if(acceptWindow(windowId))
onWindowAdded(windowId);
return;
}

if(!acceptWindow(windowId))
{
// If already known window changes its property in a way
// it's not anymore accepted, remove it from taskbar
onWindowRemoved(windowId);
return;
}
Expand Down

0 comments on commit 5e8966e

Please sign in to comment.