GLFW Mouse Button States and New Viewports #3871
EricStancliff
announced in
Old/Archived discussions
Replies: 1 comment
-
Well this is embarassing but I literally figured it out moments after posting. If anyone else has gotten here, you have to set the "glfwWindowHint(GLFW_FOCUS_ON_SHOW, false)" hint as in the impl*. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I'm having a very specific issue that I'm hoping somebody with experience supporting the viewports feature has bumped into before.
I have multiple viewports working great with my back end, but when I pull the window out and create the new Vulkan/GLFW window, for some reason GLFW reports a mouse release event on my main window and continues to report that my mouse has no pressed buttons on my new window, even though the new window is reporting as focused and my mouse button is definitely still down. This causes the new window to drop as soon as it's created.
Has anybody bumped into this before while supporting multiple viewports? Is there something I need to do to get GLFW to pass my mouse state to the new window so it doesn't report a release - or at least reports the buttons pressed (I can ignore the release on the old window since my focus states are working properly)?
I have scoured the imgui_impl_glfw example and when I break in the mouse update call it appears to not have the same issue so I'm stumped.
Thanks in advance!!
Beta Was this translation helpful? Give feedback.
All reactions