aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2015-04-19 21:05:27 +0000
committernicm <nicm>2015-04-19 21:05:27 +0000
commitee123c248951450100475717f5bd45f292d9bb4d (patch)
tree84a865000a9d0ba60d891114c88f6d36c283b5c3 /window.c
parent4a7587931ce54aa1a94a104480113d658c295b6b (diff)
downloadrtmux-ee123c248951450100475717f5bd45f292d9bb4d.tar.gz
rtmux-ee123c248951450100475717f5bd45f292d9bb4d.tar.bz2
rtmux-ee123c248951450100475717f5bd45f292d9bb4d.zip
Support setting the default window and pane background colours (window
and active pane via window-style and window-active-style options, an individual pane by a new select-pane -P flag). From J Raynor.
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.c b/window.c
index 6a742a2e..4abcf495 100644
--- a/window.c
+++ b/window.c
@@ -705,6 +705,8 @@ window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit)
wp->saved_grid = NULL;
+ memcpy(&wp->colgc, &grid_default_cell, sizeof wp->colgc);
+
screen_init(&wp->base, sx, sy, hlimit);
wp->screen = &wp->base;