ngscopeclient / scopehal-apps

ngscopeclient and other client applications for libscopehal.
https://www.ngscopeclient.org/
BSD 3-Clause "New" or "Revised" License
534 stars 83 forks source link

Better handling of tooltips etc on tiling window managers #708

Open smunaut opened 2 months ago

smunaut commented 2 months ago

So the "viewports" feature makes imgui dynamically create windows for when you want stuff to draw outside the main surface. Like tooltip and menu and popups and such, it will dynamically create a new window so you can have those go out of the main window area.

Problem is that when you have a tiling window manager that automatically arrange windows, that doesn't play nice because those suddenly get resized to full screen (or whatever area the tiling WM assigned).

Ideally they'd be created at "floating" windows but I couldn't find any WM hints or anything that worked properly so what I end up doing is just disable that viewports features by patching it out of the code.

Would be nice if this could be a preference thing.

azonenberg commented 2 months ago

According to some folks on Mastodon the correct fix is

"tooltips and menus need override-redirect set to True on any WM."

I'm not sure how we'd tell ImGui that a top level window it created is only going to be used as a tooltip or menu? Keeping this ticket open as figuring that out is likely the better long term solution.