imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Linux X11 backend?

Open Nemirtingas opened this issue 4 years ago • 4 comments

Hi,

As I'm developping my game overlay (windows/linux and probably macos if someday I understand how it works), I built a X11 backend. The code is here: https://github.com/Nemirtingas/imgui/tree/Linux_X11_backend

Would it be worth it to add it to Dear ImGui ?

Nemirtingas avatar Jun 13 '21 14:06 Nemirtingas

Great effort 👍🏻 Though merging it wont be easy. At very least an example showcasing this backend should exist. But more importantly, we would also like to support docking branch and things get quite complicated there.

rokups avatar Jun 14 '21 07:06 rokups

Hello,

There is already a x11 native backend PR here https://github.com/ocornut/imgui/pull/3372 It would be good to compare both and decide where we'd like to go.

ocornut avatar Jun 14 '21 09:06 ocornut

I didn't see it as I searched in the issues and not in the pull requests.

My implementation is pure X11, I'm not using Xcb. For what I needed, it works fine. I didn't test it much as I don't go often on Linux to try it. I never triied the Docking branch either.

#3372 seems more advanced than mine.

Nemirtingas avatar Jun 14 '21 15:06 Nemirtingas

Great effort 👍🏻 Though merging it wont be easy. At very least an example showcasing this backend should exist. But more importantly, we would also like to support docking branch and things get quite complicated there.

Hi, its been a while since I worked on this. I decided to create that example in case someone needs a pure X11/OpenGL3, its available here: https://github.com/Nemirtingas/imgui/commit/b51c951a40b694aa954274bee07624c378c3d588

Nemirtingas avatar Jul 22 '22 13:07 Nemirtingas

Linking to #3372 and #7262 and closing this.

ocornut avatar Jan 24 '24 13:01 ocornut