diff options
author | 2020-05-16 15:34:08 +0000 | |
---|---|---|
committer | 2020-05-16 15:34:08 +0000 | |
commit | 83e83a916d5ed21d40583fd5e97426cf6f88d477 (patch) | |
tree | 972ca9c51d7ecb062980d78b895b7ef89aa921fc /usr.bin/tmux/window.c | |
parent | Rename and tidy some stuff in struct tty_ctx. (diff) | |
download | wireguard-openbsd-83e83a916d5ed21d40583fd5e97426cf6f88d477.tar.xz wireguard-openbsd-83e83a916d5ed21d40583fd5e97426cf6f88d477.zip |
Do not hoke into struct window_pane from the tty code and instead set
everything up in tty_ctx. Provide a way to initialize the tty_ctx from a
callback and use it to let popups draw directly through input_parse in
the same way as panes do, rather than forcing a full redraw on every
change.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 43fa4d93072..4a5b79e3d59 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.259 2020/05/16 15:01:31 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.260 2020/05/16 15:34:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -996,26 +996,6 @@ window_pane_resize(struct window_pane *wp, u_int sx, u_int sy) } void -window_pane_alternate_on(struct window_pane *wp, struct grid_cell *gc, - int cursor) -{ - if (!options_get_number(wp->options, "alternate-screen")) - return; - screen_alternate_on(&wp->base, gc, cursor); - wp->flags |= PANE_REDRAW; -} - -void -window_pane_alternate_off(struct window_pane *wp, struct grid_cell *gc, - int cursor) -{ - if (!options_get_number(wp->options, "alternate-screen")) - return; - screen_alternate_off(&wp->base, gc, cursor); - wp->flags |= PANE_REDRAW; -} - -void window_pane_set_palette(struct window_pane *wp, u_int n, int colour) { if (n > 0xff) |