Circular tag_next in tag_del
This commit is contained in:
parent
dff9738c24
commit
a6c235e062
@ -256,8 +256,11 @@ uicb_tag_del(Uicb cmd)
|
||||
if(SLIST_EMPTY(&t->clients)
|
||||
&& TAILQ_NEXT(TAILQ_FIRST(&W->screen->tags), next))
|
||||
{
|
||||
struct tag *n = (TAILQ_NEXT(t, next)
|
||||
? TAILQ_NEXT(t, next)
|
||||
: TAILQ_FIRST(&W->screen->tags));
|
||||
|
||||
tag_screen(W->screen, TAILQ_NEXT(t, next));
|
||||
tag_screen(W->screen, n);
|
||||
tag_remove(t);
|
||||
|
||||
W->screen->flags |= SCREEN_TAG_UPDATE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user