Bug 438665

Summary: Panel does not reappear on built-in screen when external screen is disconnected (Wayland only)
Product: [Plasma] plasmashell Reporter: madcatx
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, nate
Priority: NOR    
Version: 5.22.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: plasmashell log
plasmashell log with WAYLAND_DEBUG

Description madcatx 2021-06-15 06:47:01 UTC
I have been running the Wayland session since the 5.22 update and I noticed this rather annoying issue. When I connect an external screen to my laptop and have both the external and built-in screen enabled, I always need to manually drag the main panel to the external screen. I'd expect the panel to move back to the laptop screen when the external screen is disconnected. This works fine in X11 session but not under Wayland. I can get the panel back if I either:

1) Drag the panel back to the laptop screen before I unplug the external screen
2) Create a new panel on the laptop screen

If I do the latter, I end up with two panels when I reattach the external screen.

STEPS TO REPRODUCE
1. Connect an external screen and have both screens enabled
2. Move the panel to the external screen
3. Disconnect the external screen

OBSERVED RESULT
Panel disappears and must be recreated.

EXPECTED RESULT
Panel should return to the built-in screen.
Comment 1 Nate Graham 2021-06-16 17:21:25 UTC

*** This bug has been marked as a duplicate of bug 438114 ***
Comment 2 David Edmundson 2021-06-25 10:23:47 UTC
Can you run with `WAYLAND_DEBUG=1 plasmashell --replace`

and reproduce and attach the log. This way we can see what happens with the monitor.
Comment 3 madcatx 2021-06-25 11:07:57 UTC
Created attachment 139655 [details]
plasmashell log

There you go. I started with the external screen attached and the panel placed on that screen. The log contains the disconnection and reconnection of the external screen.
Comment 4 madcatx 2021-06-25 11:12:46 UTC
Created attachment 139657 [details]
plasmashell log with WAYLAND_DEBUG

And once more with WAYLAND_DEBUG set correctly...
Comment 5 Nate Graham 2021-08-17 15:56:03 UTC

*** This bug has been marked as a duplicate of bug 356225 ***
Comment 6 Nate Graham 2021-10-06 19:09:51 UTC

*** This bug has been marked as a duplicate of bug 356727 ***