mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
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.
This commit is contained in:
20
window.c
20
window.c
@ -995,26 +995,6 @@ window_pane_resize(struct window_pane *wp, u_int sx, u_int sy)
|
||||
wp->flags |= (PANE_RESIZE|PANE_RESIZED);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user