Re: awful.mouse: fix client snapping on screen/client borders

2011-03-28 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 28.03.2011 11:23, Gregor Best wrote: On Mon, Mar 21, 2011 at 07:39:36AM +0100, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 20.03.2011 23:01, Gregor Best wrote: Attached is a patch that doesn't suck. The previous

Re: awful.mouse: fix client snapping on screen/client borders

2011-03-21 Thread Uli Schlachter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 20.03.2011 23:01, Gregor Best wrote: Attached is a patch that doesn't suck. The previous one forgot subtracting the border_width before returning the new geometry, resulting in scary growing clients. Pushed, thanks. - -- Do you know that

awful.mouse: fix client snapping on screen/client borders

2011-03-20 Thread Gregor Best
Hi people, recently, I have become a bit annoyed with some of the snapping done by awful.mouse when moving floating clients around. The problem was that while snapping against the border between two screens the client would be moved a bit too much to the right, resulting in it being partially on

Re: awful.mouse: fix client snapping on screen/client borders

2011-03-20 Thread Gregor Best
Attached is a patch that doesn't suck. The previous one forgot subtracting the border_width before returning the new geometry, resulting in scary growing clients. -- $l=\n;$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)1}while( $i++=$s){$t++if c r,r}die(Gregor Best, 0xDB9F9A7C, .($t/$s*