-
Committer:
Marco Trevisan (Treviño)
-
Date:
2012-02-18 17:53:09 UTC
-
Revision ID:
mail@3v1n0.net-20120218175309-fn71d0pkzpfq0bew
PanelMenuView: Make the grabbing of a maximized window from the panel better.
- The window is be restored as soon as the mouse pointer drags content outside
the panel area.
- Once a window is restored it is not placed outside the desktop area,
unless it fits into it, also it is never below the launcher (when visible).
In the case that the window is bigger than the available space,
the top and left borders should be always visible anyway.
- The just restored window, is grabbed on a point of the top decoration
that is proportional to the x-offset grabbed on the panel, so if you start
dragging at the left of the panel, the window is handled by the top-left
corner, if you start dragging on the right of the panel, the window is
proportionally handled on the right; this applies only with LIM enabled.
When LIMs are disabled, we just prefer the decoration middle point.
Added also misc improvements to the PanelMenuView code.