Comment 12 for bug 710356

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Re: [Bug 710356] Re: Resizing with external padding/grab area prevents reaching edge of screen

I'm looking into this but there will be one caveat in my
implementation that I won't be able to work around.

Motion events in X are always reported as absolute co-ordinates
relative to the root window (the ones that we care about anyways) so
the way this will work is that if your mouse cursor moves in the
perpendicular direction to where the screen edge is facing on screen
(eg mouse moves up/down when you are at the left edge of the screen)
then it will take the motion in the opposite direction as pointer
motion in the same direction to resize the window.

Chase, I'm CCing you in case you know something about this.

On Thu, Feb 3, 2011 at 5:06 PM, Didier Roche <email address hidden> wrote:
> ** Also affects: unity
>   Importance: Undecided
>       Status: New
>
> ** Changed in: unity
>       Status: New => Triaged
>
> ** Changed in: unity
>   Importance: Undecided => High
>
> ** Changed in: unity (Ubuntu)
>   Importance: Undecided => High
>
> ** Changed in: unity
>     Assignee: (unassigned) => Sam "SmSpillaz" Spilsbury (smspillaz)
>
> --
> You received this bug notification because you are a member of Unity
> Team, which is subscribed to unity in ubuntu.
> https://bugs.launchpad.net/bugs/710356
>
> Title:
>  Resizing with external padding/grab area prevents reaching edge of
>  screen
>
> Status in Unity:
>  Triaged
> Status in “light-themes” package in Ubuntu:
>  Incomplete
> Status in “unity” package in Ubuntu:
>  Triaged
>
> Bug description:
>  With the new external padding/resize drag area introduced in light-
>  themes=0.1.8.5 to help with LP: #160311 it is not possible to resize a
>  window exactly against the boundaries of the edge of the screen.
>
>  There are two main parts to this.
>
>    (a) The extent of the shadowing is used as the window outside.  When released, the window ends up being smaller.
>    (b) When click is initiated N pixels outside the window border, the pointer will reach the edge of the screen N pixels too soon; prevent resizing exactly against the edge.
>
>  Solutions:
>
>    (1) The shadow should not be counted as the size of the window
>    (2) If the pointer is N pixels outside of the window border, the pointer must be allowed to overshoot N pixels past the edge of the screen while resizing.
>
>  For the latter, one pixel of border must remain grabable so that the
>  window can be reduced from a semi-maximised state again.
>
>  S
>
>
>

--
Sam Spilsbury