summaryrefslogtreecommitdiffstats
path: root/window-clock.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 15:34:08 +0000
committernicm <nicm>2020-05-16 15:34:08 +0000
commit9605b080f6c942ff2e51a2ba538cccc91c91c161 (patch)
treea2cb5c229410d3c8b749a1e0da2716494c08445c /window-clock.c
parent379ca54c80837d09dff53ffa7b9ea3b80d87096b (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-clock.c')
-rw-r--r--window-clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-clock.c b/window-clock.c
index 45d4d47b..8cef3f9a 100644
--- a/window-clock.c
+++ b/window-clock.c
@@ -219,7 +219,7 @@ window_clock_draw_screen(struct window_mode_entry *wme)
colour = options_get_number(wp->window->options, "clock-mode-colour");
style = options_get_number(wp->window->options, "clock-mode-style");
- screen_write_start(&ctx, NULL, s);
+ screen_write_start(&ctx, s);
t = time(NULL);
tm = localtime(&t);