diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-07-21 16:40:05 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2012-07-21 16:40:05 +0200 |
commit | e18e063d87d679d606fc9c7ccec50146ee057e82 (patch) | |
tree | dd90b93d601e1fdca2f270548540de87b089ebf5 /src/terminal.c | |
parent | 181d26f0e7b5c6644c53d2a46349cb952a320734 (diff) |
terminal: allow external redraw-schedule
Allow UI subsystem to schedule redraws.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index 25f2892..4fac37c 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -407,6 +407,14 @@ void kmscon_terminal_close(struct kmscon_terminal *term) term->opened = false; } +void kmscon_terminal_redraw(struct kmscon_terminal *term) +{ + if (!term) + return; + + schedule_redraw(term); +} + int kmscon_terminal_add_display(struct kmscon_terminal *term, struct uterm_display *disp) { |