diff --git a/clients/window.c b/clients/window.c index bebcd350..d10662bb 100644 --- a/clients/window.c +++ b/clients/window.c @@ -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) {