Bug 473175

Summary: Wayland: some open menus stay open when having main app in background
Product: [Plasma] kwin Reporter: Henning <boredsquirrel>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: major CC: nate
Priority: NOR    
Version First Reported In: 5.27.6   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Henning 2023-08-08 21:25:38 UTC
KDE Wayland session:

I have multiple programs open with their individual surfaces. I open a menu so a subsurface in one program, in this case "Ardour Flatpak". In the task switcher I move to program "Elisa Flatpak" or anything else.

What happens?
The subsurface (menu) stays open, although the main surface (application) is hidden, as the main surface of another app is positioned above it.

What should happen?
Subsurfaces of apps (surfaces) that are covered by other main surfaces should always collapse in that case. Currently sometimes they stay open, and are on top of the main surface of the program covering their parent surface, which makes no sense.

Specified App:
kf5-kwindowsystem-5.108.0-1.fc38.x86_64
kwin-libs-5.27.6-1.fc38.x86_64
kwin-common-5.27.6-1.fc38.x86_64
kwin-wayland-5.27.6-1.fc38.x86_64
kwin-x11-5.27.6-1.fc38.x86_64
kwin-5.27.6-1.fc38.x86_64

--- Software ---
OS: Fedora Linux 38.20230808.0 (Kinoite)
KDE Plasma: 5.27.6
KDE Frameworks: 5.108.0
Qt: 5.15.10
Kernel: 6.4.7-200.fc38.x86_64
Compositor: wayland

--- Hardware ---
CPU: AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx
RAM: 13.5 GB
GPU: AMD Radeon Vega 8 Graphics
Video memory: 2048MB
Comment 1 Vlad Zahorodnii 2023-08-09 09:22:44 UTC
Can you provide a screenshot showing the problem? I'm confused by you mentioning subsurfaces
Comment 2 Nate Graham 2023-08-09 19:18:02 UTC
I think by "subsurface" he means a context menu that opens as a separate QWindow.

Cannot reproduce in Plasma 6.
Comment 3 Henning 2023-08-26 01:55:21 UTC
Yes I guess thats it.

Main window of for example firefox, I right click somewhere and there pops up a menu as a seperate wayland something.

When I have the main firefox window in the brackground though, the menu may still be in front, even though for example libreoffice is now in the foreground.

I havent seen this bug in quite a while, it was there a lot, may have been fixed.

Wait, you are using Plasma 6?
Comment 4 Nate Graham 2023-08-28 19:12:53 UTC
Yes, I'm using Plasma 6.