mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
window: Only clamp min size for windows with frame
Also fix width/height typo.
This commit is contained in:
parent
ffcbc44574
commit
e7e2cb1ce2
1 changed files with 3 additions and 3 deletions
|
|
@ -4005,14 +4005,14 @@ window_schedule_resize(struct window *window, int width, int height)
|
|||
window->pending_allocation.height = height;
|
||||
|
||||
if (window->min_allocation.width == 0) {
|
||||
if (width < min_width)
|
||||
if (width < min_width && window->frame)
|
||||
window->min_allocation.width = min_width;
|
||||
else
|
||||
window->min_allocation.width = width;
|
||||
if (height < min_height)
|
||||
if (height < min_height && window->frame)
|
||||
window->min_allocation.height = min_height;
|
||||
else
|
||||
window->min_allocation.height = width;
|
||||
window->min_allocation.height = height;
|
||||
}
|
||||
|
||||
if (window->pending_allocation.width < window->min_allocation.width)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue