diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 729008b..52cd923 100644 --- a/src/window.c +++ b/src/window.c @@ -78,7 +78,7 @@ cherry_window_new(void) window->base = cherry_widget_new(); window->title = NULL; window->listener = NULL; - window->base->draw = cherry_window_draw; + window->draw = cherry_window_draw; int offset = 10; int x, y, width, height; @@ -168,6 +168,7 @@ cherry_window_set_visible(CherryWindow *w, int visible) { CherryApplication *app = cherry_application_get_running_app(); + w->draw((CherryWidget *) w ); if (visible) { XMapRaised(app->display, w->window_handler); } |