cimgui-go icon indicating copy to clipboard operation
cimgui-go copied to clipboard

Imgui viewport on top of all windows.

Open Wolf65 opened this issue 2 years ago • 5 comments

Perhaps someone has done it so that all individual imgui windows would be on top of all windows. Of course, it is unlikely to work on a pure glfw.

Wolf65 avatar Sep 18 '23 12:09 Wolf65

It's most likely not issue for us: I've checked imgui example for glfw recently and it does the same

gucio321 avatar Sep 18 '23 15:09 gucio321

Yeah, should check the glfw's document and we might need to export few things to support if needed.

AllenDang avatar Sep 18 '23 15:09 AllenDang

I can just do glfw (floating/always on top) for now, but imgui child windows I can't get on top of all windows. And I can't find an example of how to implement this.

Wolf65 avatar Sep 18 '23 17:09 Wolf65

@Wolf65 are you able to do this on c++ imgui's glfw example?

gucio321 avatar Sep 18 '23 20:09 gucio321

what I've come to so far:

  • to disable viewport because at the moment there is no possibility to place always on top of it
  • glfw seems to need to be updated to 3.4 to support GLFW_MOUSE_PASSTHROUGH this flag will allow clicking through the glfw window. Also in the docking branch in imgui_impl_glfw.cpp there is at first glance mention of GLFW_MOUSE_PASSTHROUGH.

What is needed besides replacing in thirdparty/glfw with the current version. After replacement still Invalid window hint 0x0002000D

Wolf65 avatar Sep 20 '23 18:09 Wolf65