From c9d691e65e2815a025a5e2941c09879a55dbec99 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 22 Dec 2017 18:56:06 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20window=20size=20calculation=20when=20wp?= =?UTF-8?q?=5Fviewporter=20isn=E2=80=99t=20supported?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wl_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index da35a708..12ec96be 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -58,7 +58,7 @@ static void handleConfigure(void* data, if (!window->monitor) { - if (window->decorated) + if (_glfw.wl.viewporter && window->decorated) { width -= _GLFW_DECORATION_HORIZONTAL; height -= _GLFW_DECORATION_VERTICAL; @@ -308,7 +308,7 @@ static void resizeWindow(_GLFWwindow* window) _glfwInputFramebufferSize(window, scaledWidth, scaledHeight); _glfwInputWindowContentScale(window, scale, scale); - if (!_glfw.wl.viewporter || !window->wl.decorations.top.surface) + if (!window->wl.decorations.top.surface) return; // Top decoration.