From 644471a493843664f64579ba5fda64b6a5e40f5e Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 22 Jan 2019 11:34:27 -0500 Subject: [PATCH] Workaround for segfault crash when using xmonad --- src/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window.cpp b/src/window.cpp index 0245f57a..4563b44e 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include "osdialog.h" @@ -559,6 +560,8 @@ void windowSetWindowPos(Vec pos) { } bool windowIsMaximized() { + if (getenv("RACK_XMONAD_HACK")) + return true; return glfwGetWindowAttrib(gWindow, GLFW_MAXIMIZED); }