Bug 345773

Summary: dragging dolphin window to other desktop maximizes it horizontally
Product: [Plasma] kwin Reporter: John Andrew McInnes <s2>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: notmart
Priority: NOR    
Version: 5.2.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=324957
Latest Commit: Version Fixed In:

Description John Andrew McInnes 2015-04-01 21:02:25 UTC
If I get a dolphin window to start on my second (smaller) monitor, it is maximized horizontally. Which makes sense I guess, my second monitor is smaller and I usually have my dolphin windows pretty large so it has to shrink to fit. Then if I drag it to my first (much larger) monitor, it maximizes horizontally there stretching all the way across the screen. Looks kind of funny and is not the behavior I want. At least it didn't do that in KDE4. Is it a feature?

My plasma5-desktop version is 5.2.2-52.1 (from opensuse kf5 repo)

Dolphin says:
Version 14.12.3
Using KDE Development Platform 4.14.6

Reproducible: Always

Steps to Reproduce:
1. start dolphin on monitor 2
2. drag to monitor 1
3. release mouse button

Actual Results:  
dolphin window does horizontal maximize

Expected Results:  
dolphin window keeps its size as dragged over
Comment 1 Thomas Lübking 2015-04-02 12:11:42 UTC
If the window is maximized (in either direction and for whatever reason) it's maximized, that doesn't change on screen changes.

Altering the screen doesn't change the state and of course aligns to the new available geometry - the behavior has been nothing different in KDE4.

The crucial aspect is the maximization flag (check output of "xprop _NET_WM_STATE")

The initial maximization for oversized windows is because of a dead-old hack, working around KMainWindow's wonky state saving (maximized windows are re/stored by desktop size + 1 - yes: that *is* stupid) which has to stay at least as long as there're any KDE 4 applications around, sorry.

You can (horizontally) unmaximize windows by middle clicking the maximize button.