diff --git a/dwm.c b/dwm.c index 33a73b1..a435cc7 100644 --- a/dwm.c +++ b/dwm.c @@ -1833,6 +1833,8 @@ nexttiled(Client *c) void movestack(const Arg *arg) { Client *c = NULL, *p = NULL, *pc = NULL, *i; + if (!selmon->sel) + return; if(arg->i > 0) { /* find the client after selmon->sel */