Re: [dwm] [patch] old-new mouseresize behavior

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Thu, 1 Nov 2007 12:20:29 +0100

On Nov 1, 2007 11:44 AM, Enno Gottox Boland <gottox_AT_gmail.com> wrote:
> Hi!
>
> I wrote a little patch which brings the old resizing behavior. It
> reduces code complexibility and doesn't cost a single line of code.

Hi Gottox,

Is this pixel-perfect? If I recall correctly, we removed this way of
resizing because the code got too complex when doing it exactly right.
The "+ 1" at the nd of the "n? = abs(..." is there to make sure that
the mouse pointer is just on the lower right corner of the window,
instead of one pixel right and below of it. That way, it is possible
to drag the bottom right corner of a window exaclty to the bottom
right of the screen, instead of being one pixel of.
I believe the issue back then was that the +1 had to be there for
resizes in the positive directions, but messed things up in the
negative direction (meaning, you couldn't resize a window to the top
left of the screen)...

Greetings, Sander.
Received on Thu Nov 01 2007 - 12:20:30 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:04:03 UTC