compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Popups aren't created in their own separate window

Open rock3r opened this issue 2 years ago • 2 comments

Popups in Compose Desktop should be put in their own popup window, like Swing does. This helps to avoid issues with z-fighting with Swing components, and lets popups (such as tooltips and drop downs) appear outside the Compose panel that owns them.

rock3r avatar Mar 27 '23 10:03 rock3r

Not saying that this shouldn't be considered, but putting tooltips into a native window could have its own issues. I remember such windows stealing keyboard focus, for example, or making the parent window drawn like a "background" window.

m-sasha avatar Mar 27 '23 11:03 m-sasha

@m-sasha surely there will be side effects, but this is a pretty important feature to have for desktop apps, especially for Jewel and its ability to interop with the Swing components in IJ, which do use popup windows

rock3r avatar Mar 28 '23 10:03 rock3r

This prevents tooltips (from TooltipArea) from being able to be drawn outside a window. I have a tooltip that is supposed to be centered above an element. That element is near the edge of the window, so half of the tooltip should display past the edge of the window, but currently this breaks.

Nohus avatar Sep 03 '23 14:09 Nohus