mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
transfer: Fix null pointer exception when no focused client
This commit is contained in:
parent
6696eadf74
commit
ff78e407a5
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user