Created
February 4, 2023 18:56
-
-
Save qguv/63eaeec2de1b9265c7168d297e1f44b6 to your computer and use it in GitHub Desktop.
glslviewer-git float window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b54569d3510e0c35e8d3fe5207f68adea5fa1a4f Mon Sep 17 00:00:00 2001 | |
From: Quint Guvernator <[email protected]> | |
Date: Sat, 4 Feb 2023 19:47:38 +0100 | |
Subject: [PATCH] float window | |
--- | |
src/window.cpp | 3 +++ | |
1 file changed, 3 insertions(+) | |
diff --git a/src/window.cpp b/src/window.cpp | |
index 978dd017efa1..14b17066f32e 100644 | |
--- a/src/window.cpp | |
+++ b/src/window.cpp | |
@@ -414,6 +414,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); | |
+ | |
if (_style == FULLSCREEN) { | |
GLFWmonitor* monitor = glfwGetPrimaryMonitor(); | |
const GLFWvidmode* mode = glfwGetVideoMode(monitor); | |
-- | |
2.39.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment