Skip to content

Commit 2cc8539

Browse files
committed
TaskBar: consider initial windows
1 parent 0afcc3f commit 2cc8539

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugin-taskbar/lxqttaskbar.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ LXQtTaskBar::LXQtTaskBar(ILXQtPanelPlugin *plugin, QWidget *parent) :
107107
connect(mBackend, &ILXQtTaskbarAbstractBackend::windowPropertyChanged, this, &LXQtTaskBar::onWindowChanged);
108108
connect(mBackend, &ILXQtTaskbarAbstractBackend::windowAdded, this, &LXQtTaskBar::onWindowAdded);
109109
connect(mBackend, &ILXQtTaskbarAbstractBackend::windowRemoved, this, &LXQtTaskBar::onWindowRemoved);
110+
111+
// Consider already fetched windows
112+
const auto initialWindows = mBackend->getCurrentWindows();
113+
for(WId windowId : initialWindows)
114+
{
115+
onWindowAdded(windowId);
116+
}
110117
}
111118

112119
/************************************************

0 commit comments

Comments
 (0)