From 4e31dc5e6e8860467d8b1772402f1e08736d3f5e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 19 Dec 2017 21:32:46 +0100 Subject: [PATCH] Make it possible to toggle window decorations --- src/wl_window.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index 71dfad4c..577c4b74 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -1106,9 +1106,10 @@ void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) { - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window attribute setting not implemented yet"); + if (enabled) + createDecorations(window); + else + destroyDecorations(window); } void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled)