mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 04:08:13 +02:00
window: Fold window_resize into idle_resize
This commit is contained in:
parent
0d1c062913
commit
2ad3b7f866
1 changed files with 4 additions and 11 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue