aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-24 09:59:04 +0100
committerdec05eba <dec05eba@protonmail.com>2022-03-24 09:59:04 +0100
commitd231d93891e823a52dd6b2231792bbc0ad3853fd (patch)
tree35ac0c6d9f72d9ac381319320a6a60f36e3c2640 /src/main.cpp
parent2423e50d44997e128831ba024eb7b36397e9f700 (diff)
Fix fullscreen window forcefully getting unfullscreened on i3 and bspwm
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d492878..35b6233 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -873,6 +873,7 @@ int main(int argc, char **argv) {
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);
+ glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
window = glfwCreateWindow(1, 1, "gpu-screen-recorder", nullptr, nullptr);
if (!window) {
@@ -883,7 +884,6 @@ int main(int argc, char **argv) {
glfwMakeContextCurrent(window);
glfwSwapInterval(0);
- glfwHideWindow(window);
//#if defined(DEBUG)
XSetErrorHandler(x11_error_handler);