Bug 510950

Summary: Auto-hidden panels are not always drawn on top of always-visible panels sharing the same screen edge
Product: [Plasma] plasmashell Reporter: JR <zorael>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: nate, niccolo.venerandi
Priority: NOR    
Version First Reported In: 6.5.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: example screencast

Description JR 2025-10-23 09:42:49 UTC
Created attachment 186038 [details]
example screencast

SUMMARY
If you have a panel set to auto-hide on the same screen edge as you have a normal always-visible panel, the auto-hidden "drawer" panel, when triggered to show, is not drawn on-top if the normal panel was the last to have been interacted with. As in, if you right-click any widget in the normal panel, this will "bring it forward", and the auto-hidden panel will be drawn beneath it. If the auto-hidden panel is not big enough and becomes completely covered by the first panel, it is impossible to interact with without resizing or moving the first panel.

STEPS TO REPRODUCE
1. Add a normal panel set to be "always visible", to any edge of the screen
2. Add a second panel set to "auto-hide", to the same edge of the screen
3. Move mouse to where the second panel hides and observe it sliding out, on top of the first panel
4. Add any widget to it
5. Right-click any widget in the first panel
6. Observe that the second panel stays in place but is now drawn beneath the first panel, as if right-clicking the first panel's widget gave it focus
7. Move mouse away to make the second panel hide
8. Move mouse to bring back the second panel again

OBSERVED RESULT
The second panel is drawn beneath the first panel and, depending on their relative sizes, can potentially not be interacted with. You would have to resize the first panel or move it to a different edge of the screen.

EXPECTED RESULT
Auto-hidden panels are always drawn on top of normal panels. (I just asked it to "appear" by moving the mouse to where it's hiding.)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Aurora (Universal Blue) 43.20251022.1:beta
KDE Plasma Version:  6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
I have too many icons hidden in the systray submenu, so I thought I'd place the ones I rarely access on a second panel that I can bring out on demand. This drawer thing seems to work in principle, but the focus issues are unfortunate.