diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-12-08 16:19:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-12-08 16:19:51 +0000 |
commit | 7a82e86827e3d863a6dc4f1d50985f287d1ff86b (patch) | |
tree | 34bcc703d5d79065c5ef364be2a6ebfbc13cf6d0 /window.c | |
parent | f008d303e75c185eebcbb493b4e6d49bb400f694 (diff) | |
download | rtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.tar.gz rtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.tar.bz2 rtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.zip |
Make window options work the same was as session options, add mode-fg/mode-bg options, force -g for global on set/show/setw/showw/
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.51 2008-11-16 10:10:26 nicm Exp $ */ +/* $Id: window.c,v 1.52 2008-12-08 16:19:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -207,11 +207,11 @@ window_create(const char *name, w->mode = NULL; w->flags = 0; - w->limitx = w->limity = UINT_MAX; screen_init(&w->base, sx, sy, hlimit); w->screen = &w->base; input_init(w); + options_init(&w->options, &global_window_options); if (name == NULL) { /* XXX */ @@ -308,6 +308,7 @@ window_destroy(struct window *w) input_free(w); window_reset_mode(w); + options_free(&w->options); screen_free(&w->base); buffer_destroy(w->in); |