Browse Source

Workaround for segfault crash when using xmonad

pull/1180/head
Andrew Cady 6 years ago
parent
commit
644471a493
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/window.cpp

+ 3
- 0
src/window.cpp View File

@@ -8,6 +8,7 @@
#include <map>
#include <queue>
#include <thread>
#include <cstdlib>

#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);
}



Loading…
Cancel
Save