ghuser404

Results 43 comments of ghuser404

It's good that we found a bug in `glfwSetWindowAspectRatio`. However, this only makes my case even worse. I'm trying to make window respect aspect ratio, but stretch to all sides,...

@elmindreda So what do you think about introducing an attribute that would allow to ignore size limits and aspect ratio for maximized/snapped windows?

You can use undecorated window and implement your own decorations in the client area.

True. But I don't think you can draw custom widgets in the title bar, either way. For shadows you could have a small margin within your render context.

How about `glfwGetKeyCode` from within KeyCallback? This could return the same GLFW_KEY_xxx values.

Yes, but we already have `glfwGetKeyName`, so this kind of responsibility isn't something new. To me it seems like the cleanest solution here.

>AFAIK glfwGetKeyName() defer work to the OS. On Windows, when keyboard layout changes, GLFW already caches all key names. So `glfwGetKeyName` just makes a lookup into an internal map. >Right...

I am well aware of such keyboards. But think French, for example. Their 'A' is not where English 'A' is.

Because French keyboard doesn't have US layout printed on the keys, like Bulgarian one does. So if you have a French keyboard with French layout set in OS (because why...

To ask user with French layout to press 'A', you have to call `glfwGetKeyName(GLFW_KEY_Q, 0);`.