Don't just ignore the minimal and maximal sizes requested by the application.
Signed-off-by: Louis-Francis Ratté-Boulianne <[email protected]> --- xwayland/window-manager.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index 8048594e..bea3cc68 100644 --- a/xwayland/window-manager.c +++ b/xwayland/window-manager.c @@ -2799,6 +2799,20 @@ send_configure(struct weston_surface *surface, int32_t width, int32_t height) else new_height = 1; + /* Make sure we respect the window's size hints */ + if (window->size_hints.min_width > 0 && + new_width < window->size_hints.min_width) + new_width = window->size_hints.min_width; + if (window->size_hints.min_height > 0 && + new_height < window->size_hints.min_height) + new_height = window->size_hints.min_height; + if (window->size_hints.max_width > 0 && + new_width > window->size_hints.max_width) + new_width = window->size_hints.max_width; + if (window->size_hints.max_height > 0 && + new_height > window->size_hints.max_height) + new_height = window->size_hints.max_height; + if (window->width == new_width && window->height == new_height) return; -- 2.12.2 _______________________________________________ wayland-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/wayland-devel
