Bug 437268

Summary: Z-order of panels above fullscreen application
Product: [Plasma] plasmashell Reporter: hiphish
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nate, notmart
Priority: NOR    
Version First Reported In: 5.21.5   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description hiphish 2021-05-17 18:25:21 UTC
SUMMARY
Sometimes when I log in the Z-order of panels is wrong and they end up on top of everything, including fullscreen applications like videos or games. They are also on top of widget windows (if that is the correct name for for the window that opens when I click for example the volume control widget in a panel). This seems to happen randomly and I can solve the issue by logging out and back in. Sometimes I have to try multiple times, which can get really annoying. I am using BSPWM as my window manager, I don't know if this happens with KWin as well.


STEPS TO REPRODUCE
1. Log into a Plasma/BSPWM session from SDDM

OBSERVED RESULT
Sometimes the two panels will be on top of all other windows, including fullscreen applications.

EXPECTED RESULT
Panels should be underneath fullscreen applications

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Void Linux or Kubuntu (21.04 and 20.10) 
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I have two panels, one at the top of the screen and one at the right-hand edge of the screen. There is only one screen connected. Sometimes only one of the panels is on top, but most of the time both are. The randomness is what makes be believe this to be a bug rather than BSPWM simply not being able to handle panels.

The side panel has been set to "Windows can cover", the top panel is set to "Always visible".

The following BSPWM rule has been set for all windows with the "plasmashell" class: state=floating focus=off sticky=on border=off center=off
Comment 1 Nate Graham 2021-05-19 02:41:46 UTC
Can you please try with KWin?
Comment 2 hiphish 2021-05-19 20:39:02 UTC
Will try, but not before the weekend though. The random nature of the bug means I will potentially have to try it over and over again.
Comment 3 hiphish 2021-05-24 08:18:18 UTC
I have not been able to reproduce the issue in KWin, but I think I have found out how to trigger it in BSPWM: If there is a window open (like KMail) when I log out it will be opened again when I log back in. It appears that that might mess things up.

- Close all windows before logging out -> Z-order is fine when I log back in
- Leave KMail open -> when I log back in Z-order is messed up and KMail is opened up for me automatically
Comment 4 Marco Martin 2021-05-24 10:38:08 UTC
Panels just expose their netwm flags in order to be identified as dock windows  and not much else...
so the problem has to be in the windowmanager not respecting the behavior in the spec (if it would happen with Kwin as well, would be a KWin bug).
Can you report the issue to BSPWM?
Comment 5 hiphish 2021-05-24 10:39:45 UTC
(In reply to Marco Martin from comment #4)
> Panels just expose their netwm flags in order to be identified as dock
> windows  and not much else...
> so the problem has to be in the windowmanager not respecting the behavior in
> the spec (if it would happen with Kwin as well, would be a KWin bug).
> Can you report the issue to BSPWM?

Will do. What information would I have to pass on in particular?