mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 14:18:30 +02:00
algo/master: fix crash on null target in getNextTarget
This commit is contained in:
parent
0fe2297915
commit
67d178083e
1 changed files with 1 additions and 1 deletions
|
|
@ -1256,7 +1256,7 @@ SP<ITarget> CMasterAlgorithm::getNextCandidate(SP<ITarget> old) {
|
|||
}
|
||||
|
||||
SP<ITarget> CMasterAlgorithm::getNextTarget(SP<ITarget> t, bool next, bool loop) {
|
||||
if (t->floating())
|
||||
if (!t || t->floating())
|
||||
return nullptr;
|
||||
|
||||
const auto PNODE = getNodeFromTarget(t);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue