mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
core: fix some crash conditions around workspace ptrs in CWindow
ref #5402, supersedes #5409
This commit is contained in:
@@ -1241,7 +1241,7 @@ CWindow* CCompositor::getFullscreenWindowOnWorkspace(const int& ID) {
|
||||
}
|
||||
|
||||
bool CCompositor::isWorkspaceVisible(PHLWORKSPACE w) {
|
||||
return w->m_bVisible;
|
||||
return valid(w) && w->m_bVisible;
|
||||
}
|
||||
|
||||
PHLWORKSPACE CCompositor::getWorkspaceByID(const int& id) {
|
||||
|
Reference in New Issue
Block a user