summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-01 17:01:36 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-01 17:01:36 +0100
commit8110c7a25f257b13f92f34559efedba204e6ea98 (patch)
tree1a27040ddeb828a865b28323ee4516f053292591 /window.c
parentdbebdb2d364feea4df958528ee1dcacbb9933e37 (diff)
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 'window.c')
-rw-r--r--window.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/window.c b/window.c
index b1d812fc..8121ba2d 100644
--- a/window.c
+++ b/window.c
@@ -1006,26 +1006,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)