Make session_has return a flag, returning the first winlink found is a

recipe for errors.
This commit is contained in:
nicm
2015-04-22 15:32:33 +00:00
parent 8d66f4fba4
commit 9a453dd354
4 changed files with 7 additions and 7 deletions

View File

@ -104,7 +104,7 @@ recalculate_sizes(void)
if (flag)
has = s->curw->window == w;
else
has = session_has(s, w) != NULL;
has = session_has(s, w);
if (has) {
if (s->sx < ssx)
ssx = s->sx;