diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-01-10 19:11:42 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-01-10 19:11:42 -0500 |
commit | bb97700474968d3a0d1869cb777b092b6d46637b (patch) | |
tree | c8fd8fe1c8559bfbdbe6d86dfb121df1a7e6a2bd /clients/gears.c | |
parent | 27ff086b8edb6387c8710013a41ce631babc3e1a (diff) |
window: Get rid of the window child allocation concept
Diffstat (limited to 'clients/gears.c')
-rw-r--r-- | clients/gears.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clients/gears.c b/clients/gears.c index 5dfb47a..e94152d 100644 --- a/clients/gears.c +++ b/clients/gears.c @@ -221,7 +221,7 @@ redraw_handler(struct widget *widget, void *data) struct wl_callback *callback; struct gears *gears = data; - window_get_child_allocation(gears->window, &allocation); + widget_get_allocation(gears->widget, &allocation); window_get_allocation(gears->window, &window_allocation); if (display_acquire_window_surface(gears->d, @@ -232,7 +232,7 @@ redraw_handler(struct widget *widget, void *data) } glViewport(allocation.x, - window_allocation.height - allocation.height - allocation.x, + window_allocation.height - allocation.height - allocation.y, allocation.width, allocation.height); glScissor(allocation.x, window_allocation.height - allocation.height - allocation.y, @@ -293,7 +293,7 @@ resize_handler(struct widget *widget, height = 300; } - window_set_child_size(gears->window, width, height); + widget_set_size(gears->widget, width, height); } static void @@ -361,7 +361,7 @@ gears_create(struct display *display) window_set_keyboard_focus_handler(gears->window, keyboard_focus_handler); - frame_callback(gears, NULL, 0); + window_schedule_resize(gears->window, width, height); return gears; } |