summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch')
-rw-r--r--patch/transfer.c4
1 files changed, 2 insertions, 2 deletions
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
+}