window: Only clamp min size for windows with frame

Also fix width/height typo.
dev
Kristian Høgsberg 11 years ago
parent fb08e4bdaa
commit afb9828d57
  1. 6
      clients/window.c

@ -3741,14 +3741,14 @@ window_schedule_resize(struct window *window, int width, int height)
window->pending_allocation.height = height; window->pending_allocation.height = height;
if (window->min_allocation.width == 0) { if (window->min_allocation.width == 0) {
if (width < min_width) if (width < min_width && window->frame)
window->min_allocation.width = min_width; window->min_allocation.width = min_width;
else else
window->min_allocation.width = width; window->min_allocation.width = width;
if (height < min_height) if (height < min_height && window->frame)
window->min_allocation.height = min_height; window->min_allocation.height = min_height;
else else
window->min_allocation.height = width; window->min_allocation.height = height;
} }
if (window->pending_allocation.width < window->min_allocation.width) if (window->pending_allocation.width < window->min_allocation.width)

Loading…
Cancel
Save