Hi,

> > - The window snap to edge ignores the toolbar and the slit (feature?
> > don't think so) not mentioning other window borders.
> 
> Yeah, that could use some work.

I wrote a patch for this a long time ago, which made the window snap
function work with sides of the screen, toolbar, and slit, snapping to
the closest one if there were two within range. The patch, along with
a modified one from Justin Gatzen which takes into account the slit
being not visible, are available at:

http://blackbox.thelinuxcommunity.org/

However, I am not sure if this patch is the sort that should be
incorporated into blackbox ... it seems kludgy and wasteful in
someways. (But heck, I run it on my system!)


On a somewhat unrelated note, one small error I ran into when writing
this patch was that of the window-dragging rectangle (when not doing
opaque window movement) being incorrect. When I got the window
snapping pixel-perfect to the edges, I noticed that the movement
rectangle was off by a couple of pixels... and got worse as you
increased borderWidth. This seemed to have been fixed by 0.61.1 ...
almost... it's one pixel too large on both the right and bottom edges.
At least, that's what it seems to be on all the different styles that
I have tested with different borderWidth/bevelWidth combinations. Can
anybody verify this?


-- 
   Matthew Wong, D.D.S.                  WWW: http://cot.freeshell.org/
   [EMAIL PROTECTED]

Reply via email to