Improve some of the logging on resize.

This commit is contained in:
nicm 2017-02-08 13:53:32 +00:00
parent cb80901d33
commit 713f3b05f3
2 changed files with 5 additions and 4 deletions

View File

@ -84,8 +84,8 @@ recalculate_sizes(void)
if (s->sx == ssx && s->sy == ssy)
continue;
log_debug("session size %u,%u (was %u,%u)", ssx, ssy, s->sx,
s->sy);
log_debug("session $%u size %u,%u (was %u,%u)", s->id, ssx, ssy,
s->sx, s->sy);
s->sx = ssx;
s->sy = ssy;
@ -130,8 +130,8 @@ recalculate_sizes(void)
if (w->sx == ssx && w->sy == ssy)
continue;
log_debug("window size %u,%u (was %u,%u)", ssx, ssy, w->sx,
w->sy);
log_debug("window @%u size %u,%u (was %u,%u)", w->id, ssx, ssy,
w->sx, w->sy);
w->flags &= ~(WINDOW_FORCEWIDTH|WINDOW_FORCEHEIGHT);
w->flags |= forced;

1
tty.c
View File

@ -142,6 +142,7 @@ tty_resize(struct tty *tty)
sx = 80;
sy = 24;
}
log_debug("%s: %s now %ux%u", __func__, tty->path, sx, sy);
if (!tty_set_size(tty, sx, sy))
return (0);