aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2018-09-25 09:54:47 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2018-09-25 09:54:47 +0100
commitb4e74f4310d90affd4e1a4a7328082ac4beb5461 (patch)
tree4fd6e6e2e2a371a24a6e375d20c9ca2fbfbefa07 /tty.c
parent26d73a7736bf6c8560f90c7ae75963a02b4c9ba9 (diff)
downloadrtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.tar.gz
rtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.tar.bz2
rtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.zip
Add a B flag to mark windows bigger than the client.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index bf4c1424..f3cbbf23 100644
--- a/tty.c
+++ b/tty.c
@@ -701,11 +701,10 @@ tty_repeat_space(struct tty *tty, u_int n)
/* Is this window bigger than the terminal? */
int
-tty_window_bigger(struct tty *tty)
+tty_window_bigger(struct tty *tty, struct window *w)
{
struct client *c = tty->client;
struct session *s = c->session;
- struct window *w = s->curw->window;
return (tty->sx < w->sx || tty->sy - status_line_size(c) < w->sy);
}