window: Fold window_resize into idle_resize
This commit is contained in:
+4
-11
@@ -2019,10 +2019,13 @@ window_move(struct window *window, struct input *input, uint32_t time)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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;
|
struct widget *widget;
|
||||||
|
|
||||||
|
window->resize_scheduled = 0;
|
||||||
widget = window->widget;
|
widget = window->widget;
|
||||||
widget_set_allocation(widget,
|
widget_set_allocation(widget,
|
||||||
window->pending_allocation.x,
|
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
|
void
|
||||||
window_schedule_resize(struct window *window, int width, int height)
|
window_schedule_resize(struct window *window, int width, int height)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user