Skip to content

Commit

Permalink
gemglfw3window: disable autosaving window frame on macOS
Browse files Browse the repository at this point in the history
Closes: #390
  • Loading branch information
umlaeute committed Dec 20, 2023
1 parent 9664d63 commit 6b98d06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Output/gemglfw3window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,12 @@ bool gemglfw3window :: create(void)
glfwWindowHint(GLFW_AUTO_ICONIFY, GLFW_FALSE);

#ifdef GLFW_COCOA_FRAME_NAME
glfwWindowHintString(GLFW_COCOA_FRAME_NAME, "Gem");
/* setting a name here, enables "autosaving the window frame",
which basically means, that hints like width/height are ignored
at window creation.
so we set it to an empty string...
*/
glfwWindowHintString(GLFW_COCOA_FRAME_NAME, "");
#endif

/* do we want OpenGL-ES? */
Expand Down

0 comments on commit 6b98d06

Please sign in to comment.