diff options
Diffstat (limited to 'clock/src/main.cc')
| -rw-r--r-- | clock/src/main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clock/src/main.cc b/clock/src/main.cc index 3ede2e1..50743d4 100644 --- a/clock/src/main.cc +++ b/clock/src/main.cc @@ -58,6 +58,8 @@ extern "C" bool init() } wm->add_window(clock_win); + + set_window_timer(clock_win, 1000, TIMER_REPEAT); return true; } @@ -139,5 +141,5 @@ static void motion(Window *win, int x, int y) static void timer(Window *win) { - gfx_update(win->get_absolute_rect()); + wm->invalidate_region(win->get_absolute_rect()); } |
