From e04a7d152acd81389af702aac06a1ae573da0196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 13 Jun 2022 15:12:52 +0200 Subject: [PATCH] Wayland: Remove duplicate fullscreen check This check is already performed in shared code. (cherry picked from commit c28d420060a60d579e15afb812d5bd054891179a) --- src/wl_window.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index 79655e77..cc948114 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -2161,13 +2161,10 @@ void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) { - if (!window->monitor) - { - if (enabled) - createDecorations(window); - else - destroyDecorations(window); - } + if (enabled) + createDecorations(window); + else + destroyDecorations(window); } void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled)