mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 16:38:38 +02:00
layout/groupTarget: fix crash on null space assignment (#13614)
nullchecks my life
This commit is contained in:
parent
cc19f2ee8a
commit
9cdd5e8337
2 changed files with 4 additions and 2 deletions
|
|
@ -95,7 +95,8 @@ void CLayoutManager::endDragTarget() {
|
|||
}
|
||||
|
||||
void CLayoutManager::fullscreenRequestForTarget(SP<ITarget> target, eFullscreenMode currentEffectiveMode, eFullscreenMode effectiveMode) {
|
||||
target->space()->setFullscreen(target, effectiveMode);
|
||||
if (target->space())
|
||||
target->space()->setFullscreen(target, effectiveMode);
|
||||
}
|
||||
|
||||
void CLayoutManager::switchTargets(SP<ITarget> a, SP<ITarget> b, bool preserveFocus) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@ void CWindowGroupTarget::updatePos() {
|
|||
void CWindowGroupTarget::assignToSpace(const SP<CSpace>& space, std::optional<Vector2D> focalPoint) {
|
||||
ITarget::assignToSpace(space, focalPoint);
|
||||
|
||||
m_group->updateWorkspace(space->workspace());
|
||||
if (space)
|
||||
m_group->updateWorkspace(space->workspace());
|
||||
}
|
||||
|
||||
bool CWindowGroupTarget::floating() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue