diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-25 09:54:47 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-25 09:54:47 +0100 |
commit | b4e74f4310d90affd4e1a4a7328082ac4beb5461 (patch) | |
tree | 4fd6e6e2e2a371a24a6e375d20c9ca2fbfbefa07 /window.c | |
parent | 26d73a7736bf6c8560f90c7ae75963a02b4c9ba9 (diff) | |
download | rtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.tar.gz rtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.tar.bz2 rtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.zip |
Add a B flag to mark windows bigger than the client.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |