summaryrefslogtreecommitdiff
path: root/clients/resizor.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-01-10 10:49:41 -0500
committerKristian Høgsberg <krh@bitplanet.net>2012-01-10 12:25:32 -0500
commit5d12990dbecea205f095a17d02fdb952ba22cf13 (patch)
treeccfd81048f4eb1f2466226731864a56877c16f67 /clients/resizor.c
parent75bc667a709dbdda261e6ce3d6e8f3be222ebe14 (diff)
downloadweston-5d12990dbecea205f095a17d02fdb952ba22cf13.tar.gz
weston-5d12990dbecea205f095a17d02fdb952ba22cf13.tar.bz2
weston-5d12990dbecea205f095a17d02fdb952ba22cf13.zip
window: Allocate and flush the window surface in window.c
No need to push this to the toolkit users.
Diffstat (limited to 'clients/resizor.c')
-rw-r--r--clients/resizor.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/clients/resizor.c b/clients/resizor.c
index 8f70d537..395fdcdb 100644
--- a/clients/resizor.c
+++ b/clients/resizor.c
@@ -104,8 +104,6 @@ resizor_draw(struct resizor *resizor)
cairo_t *cr;
struct rectangle allocation;
- window_draw(resizor->window);
-
window_get_child_allocation(resizor->window, &allocation);
surface = window_get_surface(resizor->window);
@@ -122,8 +120,6 @@ resizor_draw(struct resizor *resizor)
cairo_destroy(cr);
cairo_surface_destroy(surface);
-
- window_flush(resizor->window);
}
static void
@@ -236,7 +232,7 @@ resizor_create(struct display *display)
window_set_child_size(resizor->window, resizor->width, height);
widget_set_button_handler(resizor->widget, button_handler);
- resizor_draw(resizor);
+ window_schedule_redraw(resizor->window);
return resizor;
}