cosmic-comp icon indicating copy to clipboard operation
cosmic-comp copied to clipboard

Parts of menus that are over a panel aren't selectable

Open git-f0x opened this issue 10 months ago • 8 comments

This occurs regardless of panel configuration (other than autohide, since the panel goes away). If this is more related to cosmic-comp, feel free to move this there.

git-f0x avatar Apr 10 '24 22:04 git-f0x

what is an example of the issue? I think ideally in the case of a panel that doesn't hide, popups should probably be constrained so that they don't overlap the panel.

wash2 avatar Apr 11 '24 04:04 wash2

Some apps have drop-down menus from the sides, so this can make certain options non-clickable when maximized (or if the menu is long enough). It would probably be more desirable that the popup overlaps the panel, so that it doesn't lead to unexpected popup placement. screenshot-2024-04-11-09-05-56 screenshot-2024-04-11-09-12-53

git-f0x avatar Apr 11 '24 09:04 git-f0x

This might also happen if the menus are subsurfaces instead of popups. I don't believe they will receive pointer motion events when they are outside the parent window. If they are not being constrained by cosmic-comp, I would guess they might be.

wash2 avatar Apr 11 '24 17:04 wash2

Hmm, actually testing this locally with inkscape it seems to be using regular popups.

wash2 avatar Apr 11 '24 17:04 wash2

The drop-down menu of the app in the second screenshot (and other Xwayland apps) didn't previously receive pointer events outside the window, but that has since been fixed in cosmic-comp (maybe around a month or two ago). So this is some interaction with the panel specifically (since pointer events for menus outside the window are received for both Wayland and Xwayland windows when not overlapping a panel).

git-f0x avatar Apr 11 '24 18:04 git-f0x

Ya, this is probably related to how cosmic-comp orders the surfaces that it sends pointer events to. I can transfer it there.

wash2 avatar Apr 12 '24 01:04 wash2

It would be good if surface_under (used for pointer/touch input) and workspaces_elements (used for rendering) could share logic for the z-order of all the elements in some way, so they don't have to duplicate that and it can't be inconsistent.

ids1024 avatar Jul 10 '24 21:07 ids1024

Essentially, this menu in Google Chrome shouldn't go beyond these boundaries at all. Here's a comparison with GNOME. Yes, they should be clickable, of course, but please also look into this bug

image Screenshot from 2024-09-05 00-23-48

vadimk1337 avatar Sep 04 '24 21:09 vadimk1337