summaryrefslogtreecommitdiffstats
path: root/window.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 /window.c
parent26d73a7736bf6c8560f90c7ae75963a02b4c9ba9 (diff)
Add a B flag to mark windows bigger than the client.
Diffstat (limited to 'window.c')
-rw-r--r--window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/window.c b/window.c
index 7d3b0748..3704a633 100644
--- a/window.c
+++ b/window.c
@@ -739,7 +739,7 @@ window_destroy_panes(struct window *w)
}
const char *
-window_printable_flags(struct winlink *wl)
+window_printable_flags(struct winlink *wl, struct client *c)
{
struct session *s = wl->session;
static char flags[32];
@@ -760,6 +760,8 @@ window_printable_flags(struct winlink *wl)
flags[pos++] = 'M';
if (wl->window->flags & WINDOW_ZOOMED)
flags[pos++] = 'Z';
+ if (c != NULL && tty_window_bigger(&c->tty, wl->window))
+ flags[pos++] = 'B';
flags[pos] = '\0';
return (flags);
}