mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
fix very rare crash... i think?
This commit is contained in:
parent
6f43bc7769
commit
16283e9e96
1 changed files with 5 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue