diff --git a/patch/transfer.c b/patch/transfer.c index f667416..0a99f31 100644 --- a/patch/transfer.c +++ b/patch/transfer.c @@ -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); -} \ No newline at end of file +}