add protections to movestack function - prevents crash
This commit is contained in:
parent
47484739cf
commit
794d700043
2
dwm.c
2
dwm.c
@ -1833,6 +1833,8 @@ nexttiled(Client *c)
|
|||||||
void
|
void
|
||||||
movestack(const Arg *arg) {
|
movestack(const Arg *arg) {
|
||||||
Client *c = NULL, *p = NULL, *pc = NULL, *i;
|
Client *c = NULL, *p = NULL, *pc = NULL, *i;
|
||||||
|
if (!selmon->sel)
|
||||||
|
return;
|
||||||
|
|
||||||
if(arg->i > 0) {
|
if(arg->i > 0) {
|
||||||
/* find the client after selmon->sel */
|
/* find the client after selmon->sel */
|
||||||
|
Loading…
Reference in New Issue
Block a user