workspace taskbars: Fix title not updating

Fix another older bug where the title of a window will not be updated after moving it to another monitor.
In onWindowMoved, when moving an orphan window to the display of the current bar, that window should no longer be an orphan.
This commit is contained in:
Pol Rivero
2025-01-01 17:44:53 +01:00
parent 5e1d6d1cc5
commit e1649b001f

View File

@ -509,6 +509,7 @@ void Workspaces::onWindowMoved(std::string const &payload) {
// ...and then add it to the new workspace // ...and then add it to the new workspace
if (!windowRepr.empty()) { if (!windowRepr.empty()) {
m_orphanWindowMap.erase(windowAddress);
m_windowsToCreate.emplace_back(workspaceName, windowAddress, windowRepr); m_windowsToCreate.emplace_back(workspaceName, windowAddress, windowRepr);
} }
} }