Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS: turning off GLFW_DECORATED breaks glfwIconifyWindow/glfwMaximizeWindow #1737

Open
neuroscr opened this issue Jul 22, 2020 · 3 comments
Assignees
Labels
bug Bug reports and bugfix pull requests macOS verified Reproduced or otherwise verified bugs
Projects

Comments

@neuroscr
Copy link

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

Any one have a workaround?

@elmindreda elmindreda added bug Bug reports and bugfix pull requests macOS verified Reproduced or otherwise verified bugs labels Jul 22, 2020
@elmindreda elmindreda self-assigned this Jul 22, 2020
@elmindreda
Copy link
Member

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.

@elmindreda elmindreda added this to Todo in Queue Jul 22, 2020
@neuroscr
Copy link
Author

neuroscr commented Jul 22, 2020

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

@neuroscr
Copy link
Author

neuroscr commented Jul 24, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports and bugfix pull requests macOS verified Reproduced or otherwise verified bugs
Projects
Queue
Todo
Development

No branches or pull requests

2 participants