Skip to content

Commit

Permalink
Ensure that the GLFW window is always visible and decorated
Browse files Browse the repository at this point in the history
Otherwise if the user closes the main GLFW window before closing/merging a
viewport, the main window will not be visible the next time the program is
started in the same process (i.e. in the REPL).
  • Loading branch information
JamesWrigley committed Jul 29, 2024
1 parent e465d51 commit 37319a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/GlfwOpenGLBackend.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function ig._render(ui, ctx::Ptr{lib.ImGuiContext}, ::Val{:GlfwOpenGL3};

# Configure GLFW
glsl_version = get_glsl_version(opengl_version)
GLFW.WindowHint(GLFW.VISIBLE, true)
GLFW.WindowHint(GLFW.DECORATED, true)
GLFW.WindowHint(GLFW.CONTEXT_VERSION_MAJOR, opengl_version.major)
GLFW.WindowHint(GLFW.CONTEXT_VERSION_MINOR, opengl_version.minor)

Expand Down

0 comments on commit 37319a8

Please sign in to comment.