terminal: redraw on wake-up
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 24 Jun 2012 08:53:04 +0000 (10:53 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 24 Jun 2012 08:53:04 +0000 (10:53 +0200)
The drm video backend does automatically blit the framebuffer on wake-up,
however, the fbdev backend does not. Hence, we automatically redraw on
wake-up in the terminal backend now.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/terminal.c

index 0773d5a..e7bb3ae 100644 (file)
@@ -244,6 +244,8 @@ static void video_event(struct uterm_video *video,
 
        if (ev->action == UTERM_GONE)
                rm_display(term, ev->display);
+       else if (ev->action == UTERM_WAKE_UP)
+               schedule_redraw(term);
 }
 
 static void input_event(struct uterm_input *input,