From 309915337575023806816310a4c358f7e67e70a5 Mon Sep 17 00:00:00 2001 From: Konstantinos Chatzilygeroudis Date: Wed, 20 Nov 2019 12:40:17 +0100 Subject: [PATCH] GlfwApplication:, @mosra's comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Vladimír Vondruš --- src/Magnum/Platform/GlfwApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index c4dd0e370..9d7df72f0 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/src/Magnum/Platform/GlfwApplication.cpp @@ -469,7 +469,7 @@ bool GlfwApplication::tryCreate(const Configuration& configuration, const GLConf If we are on Wayland, this is causing a segfault; a blinking window is acceptable in this case. */ constexpr const char waylandString[] = "wayland"; - const char* xdgSessionType = std::getenv("XDG_SESSION_TYPE"); + const char* const xdgSessionType = std::getenv("XDG_SESSION_TYPE"); if(!xdgSessionType || std::strncmp(xdgSessionType, waylandString, sizeof(waylandString)) != 0) glfwWindowHint(GLFW_VISIBLE, false); else if(_verboseLog)