Bug 345773 - dragging dolphin window to other desktop maximizes it horizontally
Summary: dragging dolphin window to other desktop maximizes it horizontally
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.2.2
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-01 21:02 UTC by John Andrew McInnes
Modified: 2015-04-02 12:11 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.