Wayland: Remove duplicate fullscreen check

This check is already performed in shared code.
This commit is contained in:
Camilla Löwy 2022-06-13 15:12:52 +02:00
parent 18df0baea6
commit c28d420060

View File

@ -2098,13 +2098,10 @@ void _glfwSetWindowResizableWayland(_GLFWwindow* window, GLFWbool enabled)
void _glfwSetWindowDecoratedWayland(_GLFWwindow* window, GLFWbool enabled) void _glfwSetWindowDecoratedWayland(_GLFWwindow* window, GLFWbool enabled)
{ {
if (!window->monitor) if (enabled)
{ createDecorations(window);
if (enabled) else
createDecorations(window); destroyDecorations(window);
else
destroyDecorations(window);
}
} }
void _glfwSetWindowFloatingWayland(_GLFWwindow* window, GLFWbool enabled) void _glfwSetWindowFloatingWayland(_GLFWwindow* window, GLFWbool enabled)