From 2ad3b7f866aee60a9a109e564a5f2dc3b34d94df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 31 Jan 2012 15:34:15 -0500 Subject: [PATCH] window: Fold window_resize into idle_resize --- clients/window.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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) {