Bug 180084 - "Pack shrink" should stop at the desktop border
Summary: "Pack shrink" should stop at the desktop border
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-09 01:08 UTC by Grósz Dániel
Modified: 2013-08-02 20:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.11


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grósz Dániel 2009-01-09 01:08:54 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

When using pack shrink window key combination (and possibly also pack window up/down/left/right) which hangs out of the screen, it would be better if it stopped at the screen border.
Comment 1 Thomas Lübking 2012-03-14 22:06:53 UTC
It actually stops at the screen border - *precisely* there (there should be more space left or the window moved counter-directionally)

---
Ah, "window packing" is taking certain screen ratios - seems sbd. had a similar idea before me ;-)
Comment 2 Thomas Lübking 2013-07-19 13:00:58 UTC
update: packing operates on screenarea and not maximization area, what's likely wrong. (can cover / underflow panels)
Comment 3 Thomas Lübking 2013-08-02 20:30:09 UTC
Git commit cec9acf3b1d7ad46c1473c768050c8baeae842d8 by Thomas Lübking.
Committed on 19/07/2013 at 14:28.
Pushed by luebking into branch 'KDE/4.11'.

update packing logics to honor activities and tabs

at the same time using MaximizeArea instead MoveArea

ratio:
movearea allows to pack windows under panels and while
one can expect users of packing to know alt+lmb, we usually
do not allow to loose the titlebar

Moreover this relies on packing against dock windows what
fails with "virtual" struts as input shaping panels
(eg. cairo-dock?) might use (ie. we we would also have packed
against plasma panel shadows - back then ;-)
REVIEW: 111603
FIXED-IN: 4.11

M  +17   -25   kwin/placement.cpp

http://commits.kde.org/kde-workspace/cec9acf3b1d7ad46c1473c768050c8baeae842d8