From 2926ce483899817c86f74c9ce581e48e1a8b2c71 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 afc52d76..c165ba73 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) {