summarylogtreecommitdiffstats
path: root/floating_wm_workaround.patch
diff options
context:
space:
mode:
authorTheArtist2019-09-29 12:27:50 +0300
committerTheArtist2019-09-29 12:27:50 +0300
commit07623b5f6f79a9b78c3167f1800bd00631679db2 (patch)
treeee0e34b3ca8192623449d43dc10ad447a73778c7 /floating_wm_workaround.patch
parent77908352418221a9410ad93fd7a1d0edfc9fcea5 (diff)
downloadaur-07623b5f6f79a9b78c3167f1800bd00631679db2.tar.gz
Updated floating wm workaround patch
Diffstat (limited to 'floating_wm_workaround.patch')
-rw-r--r--floating_wm_workaround.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/floating_wm_workaround.patch b/floating_wm_workaround.patch
index d0cdc2005ab5..64c4fcc0e220 100644
--- a/floating_wm_workaround.patch
+++ b/floating_wm_workaround.patch
@@ -1,14 +1,14 @@
diff --git a/src/window.cpp b/src/window.cpp
-index 66cf765..fc8f44c 100644
+index 7b5eb06..d3f6a09 100644
--- a/src/window.cpp
+++ b/src/window.cpp
-@@ -204,6 +204,9 @@ void initGL (glm::ivec4 &_viewport, bool _headless, bool _alwaysOnTop) {
+@@ -416,6 +416,9 @@ void initGL (glm::ivec4 &_viewport, WindowStyle _style) {
+ else if (_style == ALLWAYS_ON_TOP)
glfwWindowHint(GLFW_FLOATING, GL_TRUE);
- }
+ // Make it float
+ glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
+
- window = glfwCreateWindow(_viewport.z, _viewport.w, appTitle.c_str(), NULL, NULL);
-
- if(!window) {
+ if (_style == FULLSCREEN) {
+ GLFWmonitor* monitor = glfwGetPrimaryMonitor();
+ const GLFWvidmode* mode = glfwGetVideoMode(monitor);