From ae8188cee98df04fd36b58fb2553dc632a013158 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 29 Jan 2018 05:06:23 +0100 Subject: [PATCH] =?UTF-8?q?Prevent=20resizing=20smaller=20than=201=C3=971?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wl_window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wl_window.c b/src/wl_window.c index afc52d76e..c165ba73a 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -63,6 +63,10 @@ static void handleConfigure(void* data, width -= _GLFW_DECORATION_HORIZONTAL; height -= _GLFW_DECORATION_VERTICAL; } + if (width < 1) + width = 1; + if (height < 1) + height = 1; if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) {