fix very rare crash... i think?

This commit is contained in:
vaxerski 2022-01-18 22:27:40 +01:00
parent 6f43bc7769
commit 16283e9e96

View file

@ -1861,7 +1861,11 @@ void CWindowManager::updateBarInfo() {
message.lastWindowClass = winclassname; message.lastWindowClass = winclassname;
message.fullscreenOnBar = getWorkspaceByID(activeWorkspaces[ConfigManager::getInt("bar:monitor") > monitors.size() ? 0 : ConfigManager::getInt("bar:monitor")])->getHasFullscreenWindow(); const auto WORKSPACE = getWorkspaceByID(activeWorkspaces[ConfigManager::getInt("bar:monitor") > monitors.size() ? 0 : ConfigManager::getInt("bar:monitor")]);
if (WORKSPACE)
message.fullscreenOnBar = WORKSPACE->getHasFullscreenWindow();
else
message.fullscreenOnBar = false;
for (auto& workspace : workspaces) { for (auto& workspace : workspaces) {
message.openWorkspaces.push_back(workspace.getID()); message.openWorkspaces.push_back(workspace.getID());