[LWJGL3 - GLFW] GLFW dynamic floating (a.k.a. always on top)

Started by Joha, July 20, 2016, 15:05:37

Previous topic - Next topic

Joha

Hello,

I am currently creating an item/world editor in separate JavaFX and GLFW windows and we want to be able to click on the JavaFX panels while still seeing the GLFW window and the game itself.

Here is how it looks now:


I am currently managing the events of clicking outside of the application (ie. Windows explorer) by managing the focus and hiding the GLFW window if it should be hidden. This is not very user friendly however in cases where you are browsing outside of the application but would still love to see what is going on in the game, modal dialogs, dynamic JavaFx panels and so on. So I would like to know if it's possible to dynamically manage the hint GLFW_FLOATING and setting it to GL_FALSE/GL_TRUE as needed or I am stuck with glfwShow/HideWindow  :'(.

Also we are currently on 3.0.0b, but I am planning to upgrade soon. Thank you very much for your help  :)