Bug 464136 - Applications sometimes draw behind the Panel if it is aligned to the right screen side
Summary: Applications sometimes draw behind the Panel if it is aligned to the right sc...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.9
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-11 09:49 UTC by serkonda7
Modified: 2024-01-08 14:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
bug screenshot using dolphin (4.55 KB, image/png)
2023-01-11 09:49 UTC, serkonda7
Details

Note You need to log in before you can comment on or make changes to this bug.
Description serkonda7 2023-01-11 09:49:53 UTC
Created attachment 155206 [details]
bug screenshot using dolphin

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
I have the Panel on my right screen side.
Almost daily, I notice that all applications are drawn behind the panel.
However this is not permanent and mostly occurs after closing the notebook lid and reopening it after some time.
It's kinda annoying, as some functionality cannot be accessed this way (especially many hamburger menus of e.g. Browsers).

STEPS TO REPRODUCE
These steps are what I have observed mostly. It's not always the case...
1.  Close notebook lid
2. Reopen it after a short wait
3. Open and newly applications might be drawn behind the panel

OBSERVED RESULT
See screenshot

EXPECTED RESULT
Panel space is not used for drawing apps

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.15.86-1-lts 
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-01-11 18:45:18 UTC
Do you have any Window Rules?

Are you using the X11 or the Wayland session?
Comment 2 serkonda7 2023-01-12 19:03:18 UTC
I have no window rules and use the X11 session.
Comment 3 Nate Graham 2023-01-12 21:25:22 UTC
Thanks for the info. Not sure what could be causing this, unfortunately.
Comment 4 serkonda7 2023-01-31 17:25:41 UTC
I found a quick and easy workaround:
- Enter the edit mode
- Exit the edit mode immediately

Afterwards the panel space is respected by all apps again.
Comment 5 serkonda7 2023-11-06 19:11:51 UTC
I finally found the cause.

Take the following setup:
- Connect one Notebook running Plasma and one external monitor using HDMI.  Both screens have the same resolution (1920x1080). (Assumption: Two external monitors work the same) 
- Align the desktop's panel to the right (Assumption: Panel on left works the same)
- Use the "Expand to right" display option
- Open a maximized window and move it to the external monitor
- Unplug the HDMI cable so the window automatially get's move to the main screen

Result:
You can notice how the window is drawn behind the panel.
I guess the window manager somewhere lacks a call to recalculate maximized window size.
Comment 6 serkonda7 2023-12-23 21:19:45 UTC
Today I made the switch to wayland (in preparation for Plasma 6) and this is not reproducible anymore.
From my side, this could be closed.