Trash-Icon sits on its own layer
Version information
Manjaro Thunar 4.20.4 and 4.21.2 xfce4-panel 4.20.4 and 4.21.0
Steps to reproduce
- Have a xfce4-panel in a wayland session (I reproduced the problem both in niri and labwc)
- Have at lest an application menu and the trash icon on the panel in such a way the menu should cover the trash icon when opened. I have the panel in deskbar mode with 3 rows, the menu at the very top with the icon only in one row, followed by a few starters and the trash icon (see screenshots)
- Open the menu
Current behaviour
If I add the Trash Panel Applet to my panel on wayland and then open the application menu the menu will appear behind the trash icon and if I click where the icon covers the menu the icon receives the click and not the menu entry below. The tooltips of starters on the panel are also affected by this. I can't tell if this problem theoretically also exists in X11 because there the menu and the tooltips appear next to the panel and are not covering it.
Additional information
In niri i can print the layers that are currently present with niri msg layers
When the trash icon is present the output looks like this
Output "Virtual-1":
Background layer:
Surface:
Namespace: "wallpaper"
Keyboard interactivity: none
Bottom layer: (empty)
Top layer:
Surface:
Namespace: "gtk-layer-shell"
Keyboard interactivity: on-demand
Overlay layer:
Surface:
Namespace: "gtk-layer-shell"
Keyboard interactivity: on-demand
Surface:
Namespace: "gtk-layer-shell"
Keyboard interactivity: on-demand
After removing the trash applet from the panel the output looks like this
Output "Virtual-1":
Background layer:
Surface:
Namespace: "wallpaper"
Keyboard interactivity: none
Bottom layer: (empty)
Top layer:
Surface:
Namespace: "gtk-layer-shell"
Keyboard interactivity: on-demand
Overlay layer:
Surface:
Namespace: "gtk-layer-shell"
Keyboard interactivity: on-demand
So there are two surfaces in the overly layer when the applet is present and only one when it is not. So it looks like the applet appears on it's own surface while it probably should be on the same surface as the rest of the panel