Skip to content

Instantly share code, notes, and snippets.

@qguv
Created February 4, 2023 18:56
Show Gist options
  • Save qguv/63eaeec2de1b9265c7168d297e1f44b6 to your computer and use it in GitHub Desktop.
Save qguv/63eaeec2de1b9265c7168d297e1f44b6 to your computer and use it in GitHub Desktop.
glslviewer-git float window
From b54569d3510e0c35e8d3fe5207f68adea5fa1a4f Mon Sep 17 00:00:00 2001
From: Quint Guvernator <quint@guvernator.net>
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