arrange: Add selbytag[seltag]->win for the focus condition (maybe fix the segfault
This commit is contained in:
parent
09646ddf85
commit
c67e56f15e
@ -136,6 +136,7 @@ client_focus(Client *c)
|
|||||||
XSetWindowBorder(dpy, sel->tbar->win, conf.colors.bordernormal);
|
XSetWindowBorder(dpy, sel->tbar->win, conf.colors.bordernormal);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(c)
|
if(c)
|
||||||
grabbuttons(c, True);
|
grabbuttons(c, True);
|
||||||
|
|
||||||
|
|||||||
@ -45,7 +45,7 @@ arrange(void)
|
|||||||
|
|
||||||
tags[seltag].layout.func();
|
tags[seltag].layout.func();
|
||||||
|
|
||||||
if(selbytag[seltag])
|
if(selbytag[seltag] && selbytag[seltag]->win)
|
||||||
client_focus(selbytag[seltag]);
|
client_focus(selbytag[seltag]);
|
||||||
else
|
else
|
||||||
client_focus(NULL);
|
client_focus(NULL);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user