Skip to content

Commit

Permalink
TaskBar: consider initial windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgit committed Mar 26, 2024
1 parent 0afcc3f commit 2cc8539
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin-taskbar/lxqttaskbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ LXQtTaskBar::LXQtTaskBar(ILXQtPanelPlugin *plugin, QWidget *parent) :
connect(mBackend, &ILXQtTaskbarAbstractBackend::windowPropertyChanged, this, &LXQtTaskBar::onWindowChanged);
connect(mBackend, &ILXQtTaskbarAbstractBackend::windowAdded, this, &LXQtTaskBar::onWindowAdded);
connect(mBackend, &ILXQtTaskbarAbstractBackend::windowRemoved, this, &LXQtTaskBar::onWindowRemoved);

// Consider already fetched windows
const auto initialWindows = mBackend->getCurrentWindows();
for(WId windowId : initialWindows)
{
onWindowAdded(windowId);
}
}

/************************************************
Expand Down

0 comments on commit 2cc8539

Please sign in to comment.