Browse Source

GlfwApplication:, @mosra's comment

Co-Authored-By: Vladimír Vondruš <mosra@centrum.cz>
pull/401/head
Konstantinos Chatzilygeroudis 7 years ago committed by GitHub
parent
commit
3099153375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Magnum/Platform/GlfwApplication.cpp

2
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)

Loading…
Cancel
Save