Bug 480791

Summary: After restarting system or plasmashell, panel overlapping or being overlapped by other panel may pick the wrong screen to live on until screens are reconfigured
Product: [Plasma] plasmashell Reporter: Dmitrii Chermnykh <chermnykh2001>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: alem99393, chermnykh2001, kdedev, nate, niccolo.venerandi, xaver.hugl
Priority: NOR Keywords: multiscreen, qt6
Version: 5.93.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=483348
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Actual Behavior
Expected configuration
Display Configuration
panel misplacement on plasma 6.0.3

Description Dmitrii Chermnykh 2024-02-03 17:49:27 UTC
SUMMARY


STEPS TO REPRODUCE
1. Have 2 screens configured one to the top of another one. The bottom screen is primary
2. Configure default panel as a top panel
3. Add 2nd panel to be on the left side on the primary screen. Set the alignment to "bottom" and length to "fill height"
4. Restart plasmashell

OBSERVED RESULT
The first (horizontal) panel is on the primary screen
The second panel is on the secondary screen

EXPECTED RESULT
Both panels should be on the primary screen

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Kernel Version: 6.7.3-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 23.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2

ADDITIONAL INFORMATION
Both screens are configured to be fractionally scaled at 150%
Comment 1 Dmitrii Chermnykh 2024-02-03 17:51:25 UTC
Created attachment 165505 [details]
Actual Behavior
Comment 2 Dmitrii Chermnykh 2024-02-03 17:51:43 UTC
Created attachment 165506 [details]
Expected configuration
Comment 3 Dmitrii Chermnykh 2024-02-03 17:52:01 UTC
Created attachment 165507 [details]
Display Configuration
Comment 4 Dmitrii Chermnykh 2024-02-03 17:52:42 UTC
Re-configuring the primary screen puts panel back on the expected place until the next plasmashell restart
Comment 5 Dmitrii Chermnykh 2024-02-03 17:55:25 UTC
If I set the alignment to "bottom" then the panel appears at the bottom screen after a restart which is configured to be the primary screen
Comment 6 Nate Graham 2024-02-05 21:37:47 UTC
Can reproduce. How bizarre.
Comment 7 Dmitrii Chermnykh 2024-03-30 10:49:13 UTC
Seems to be fixed in 6.0.3 (probably by https://invent.kde.org/plasma/plasma-workspace/-/commit/d03a98fc69c94f83f9410651d15a21ff41a72904)
Comment 8 Dmitrii Chermnykh 2024-04-01 06:19:06 UTC
I've got the misplaced panel again after reboot

It seems that it now reproduces not 100% of the plasmashell restarts, but still can be misplaced on reboot
Comment 9 Nate Graham 2024-04-08 19:14:11 UTC
Ar you using Plasma 6.0.3 or later? If so, can you confirm that the original steps to reproduce make it happen, or else write new ones?
Comment 10 Dmitrii Chermnykh 2024-04-08 19:54:42 UTC
(In reply to Nate Graham from comment #9)
> Ar you using Plasma 6.0.3 or later? If so, can you confirm that the original
> steps to reproduce make it happen, or else write new ones?

I'm on 6.0.3

1. Have 2 screens configured one to the top of another one. The bottom screen is primary
2. Configure default panel as a top panel
3. Add 2nd panel to be on the left side on the primary screen. Set the alignment to "TOP" and length to "fill height"
(i've changed the alignment compared to the previous report to TOP) 
4. Disconnect and connect back the display (or reboot, I think it also might happen on plasmashell restart)

Now it's much harder to reproduce, I can't consistently get panel to switch it's screen (most of the times it launches on the screen it configured to be on)
(in earlier kde versions it used to switch the screen on each plasmashell restart)
Comment 11 Dmitrii Chermnykh 2024-04-08 19:56:44 UTC
Created attachment 168292 [details]
panel misplacement on plasma 6.0.3
Comment 12 TraceyC 2024-09-24 19:42:21 UTC
As a data point, I am not currently able to reproduce this on git-master Wayland, using the setup steps in comment #10
https://bugs.kde.org/show_bug.cgi?id=480791#c10

I have tried disconnecting and reconnecting the external display multiple times, restarting plasmashell multiple times, and rebooting multiple times. The panels stay where they were configured (on the primary laptop display)