From 18e52a826d1bd6baea5b6b181ed18bd7ad4c8b84 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Wed, 23 Jan 2019 08:31:54 -0500 Subject: [PATCH] Workaround for segfault crash when using xmonad --- src/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/window.cpp b/src/window.cpp index ae6f60d2..d065d2cf 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #ifdef ARCH_MAC // For CGAssociateMouseAndMouseCursorPosition @@ -439,6 +440,7 @@ void Window::setWindowPos(math::Vec pos) { } bool Window::isMaximized() { + if (getenv("RACK_XMONAD_HACK")) return true; return glfwGetWindowAttrib(win, GLFW_MAXIMIZED); }