transfer: Fix null pointer exception when no focused client

This commit is contained in:
bakkeby 2020-10-16 15:26:00 +02:00
parent 6696eadf74
commit ff78e407a5

View File

@ -11,7 +11,7 @@ transfer(const Arg *arg)
stail = c;
i++;
}
if (selmon->sel->isfloating || i == 0) {
if (!selmon->sel || selmon->sel->isfloating || i == 0) {
return;
} else if (transfertostack) {
selmon->nmaster = MIN(i, selmon->nmaster) - 1;
@ -30,4 +30,4 @@ transfer(const Arg *arg)
}
}
arrange(selmon);
}
}