smithay icon indicating copy to clipboard operation
smithay copied to clipboard

Popups parented to the same toplevel are not stacked properly

Open Supreeeme opened this issue 8 months ago • 0 comments

In both Niri and Anvil, if you have two popups that are parented to the same toplevel, the second one is stacked under the first one, but it should be stacked above. This works as expected on labwc (wlroots) and KDE.

According to the xdg_popup spec:

A newly created xdg_popup will be stacked on top of all previously created xdg_popup surfaces associated with the same xdg_toplevel.

This is easily reproducible via xwayland-satellite and gtk4-widget-factory. See https://github.com/Supreeeme/xwayland-satellite/issues/153.

Supreeeme avatar May 11 '25 15:05 Supreeeme