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);
|
||||
|
||||
}
|
||||
|
||||
if(c)
|
||||
grabbuttons(c, True);
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ arrange(void)
|
||||
|
||||
tags[seltag].layout.func();
|
||||
|
||||
if(selbytag[seltag])
|
||||
if(selbytag[seltag] && selbytag[seltag]->win)
|
||||
client_focus(selbytag[seltag]);
|
||||
else
|
||||
client_focus(NULL);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user