window: Fold window_resize into idle_resize

This commit is contained in:
Kristian Høgsberg 2012-01-31 15:34:15 -05:00
parent 0d1c062913
commit 2ad3b7f866

View File

@ -2019,10 +2019,13 @@ window_move(struct window *window, struct input *input, uint32_t time)
}
static void
window_resize(struct window *window)
idle_resize(struct task *task, uint32_t events)
{
struct window *window =
container_of(task, struct window, resize_task);
struct widget *widget;
window->resize_scheduled = 0;
widget = window->widget;
widget_set_allocation(widget,
window->pending_allocation.x,
@ -2043,16 +2046,6 @@ window_resize(struct window *window)
}
}
static void
idle_resize(struct task *task, uint32_t events)
{
struct window *window =
container_of(task, struct window, resize_task);
window_resize(window);
window->resize_scheduled = 0;
}
void
window_schedule_resize(struct window *window, int width, int height)
{