From 0509be07404a4f4626bbdab56d858f657dc68604 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 29 Apr 2016 15:00:48 +0000 Subject: Add option to include status text in the pane borders. If pane-border-status is set to "top" or "bottom" (rather than "off"), every pane has a permanent top or bottom border containing the text from pane-border-format. Based on a diff sent long ago by Jonathan Slenders, mostly rewritten and simplified by me. --- cmd-set-option.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd-set-option.c') diff --git a/cmd-set-option.c b/cmd-set-option.c index b1771436..6fc6c8ba 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -201,6 +201,12 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) if (strcmp(oe->name, "monitor-silence") == 0) alerts_reset_all(); + /* When the pane-border-status option has been changed, resize panes. */ + if (strcmp(oe->name, "pane-border-status") == 0) { + RB_FOREACH(w, windows, &windows) + layout_fix_panes(w, w->sx, w->sy); + } + /* Update sizes and redraw. May not need it but meh. */ recalculate_sizes(); TAILQ_FOREACH(c, &clients, entry) { -- cgit v1.2.3