Bug 344860

Summary: unable to maximize after undocking
Product: [Plasma] plasmashell Reporter: Martin Kyral <sine.nomine>
Component: generic-multiscreenAssignee: Aleix Pol <aleixpol>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bhush94, kde, notmart, plasma-bugs
Priority: NOR    
Version: 5.2.1   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Martin Kyral 2015-03-05 10:49:23 UTC
With laptop docked in a docking station with external display (used as a second display extending the workspace) I have maximizing issues every time I undock. In such circumstances, the maximize button doesn't stretch the window over the whole display (- panel) but only over top 50% of the display. Restarting plasmashell helps, so as does setting the screen resolution to some lower and back to full screen in kscreen.

The issue can be reproduced with xrandr, too. Turning the external screen off in kscreen works fine.

Reproducible: Always

Steps to Reproduce:
1. have laptop with external screen attached (extending the desktop)
2. turn the external screen off outside KDE configuration (undock/pull-off the cable/xrandr)

Actual Results:  
Actual Results: maximizing borked, affected usability. Can be 'fixed' by restarting plasmashell or fiddling with the screen configuration in kscreen.

Expected Results:  
Expected Results: maximizing works as expected. No workaround needed.

Originally the issue got discussed here: https://bugs.kde.org/show_bug.cgi?id=344787
As there were another bugs present and the discussion got lenghty, I am filing this new bug to fix the plasmashell issue alone.
Comment 1 Marco Martin 2015-03-11 17:16:41 UTC
when docked has it external screens too?
seems the panel struts not being updated correctly when a screen gets disabled
Comment 2 Martin Kyral 2015-03-12 10:30:35 UTC
Yes. I have the external display connected to the dock, not the laptop itself. But this is just tiny technical detail; xrandr works for reproducing the issue just as well.
Comment 3 Marco Martin 2015-03-31 09:17:09 UTC
tried with a second monitor, with or without panels in it.
but upon deactivation of the second monitor maximize still work fine, can't reproduce for now
Comment 4 Martin Kyral 2015-08-20 00:47:03 UTC
Important detail: in my case, vertical resolution of the external monitor (1080) is different from the vertical resolution of the internal display (768).
Comment 5 Martin Kyral 2017-03-08 08:09:13 UTC
The problem did not occur for quite some time, closing.