Glfw: MacOS: turning off GLFW_DECORATED breaks glfwIconifyWindow/glfwMaximizeWindow

Created on 22 Jul 2020  路  3Comments  路  Source: glfw/glfw

on MacOS, if you set glfwWindowHint(GLFW_DECORATED, false); // hide titlebar
then glfwIconifyWindow and glfwMaximizeWindow do nothing.

Any one have a workaround?

bug macOS verified

All 3 comments

This is definitely a bug, thank you!

As a workaround until this is fixed you can resize and move the window manually to the area returned by glfwGetMonitorWorkarea of whatever monitor contains the center of the window.

This was on MacOS 10.14
I should add that was in GLFW 3.1.x (IIRC) and that in GLFW 3.3.2 the glfwIconifyWIndow does seem to work as expected and for glfwMaximizeWindow, I was able to use glfwSetWindowAttrib(win->rawWindow, GLFW_DECORATED, true); to temporarily and then call it, to workaround it for now.

I wish there was a workaround for GLFW 3.1.x because I still target MacOS 10.6 support

Also noticed there's no resize bars either... would be nice to be able to fix those as well

Was this page helpful?
0 / 5 - 0 ratings

Related issues

~
snbharath picture snbharath  路  3Comments

aleck099 picture aleck099  路  3Comments

Itanq picture Itanq  路  5Comments

dmitshur picture dmitshur  路  4Comments

christianparpart picture christianparpart  路  4Comments