> 
> Some things are, some things aren't, for me - an xterm maximized is
> fine, but evolution maximized only snaps to the very top and bottom
> edges of the screen - no struts, no left and right edges.
> 
> actually, it seems that anything that doesn't quite fit snug (ie xterm -
> uses increments) snaps properly, but anything that does fit snug with
> full maximization off only sees (in my case) the top and bottom screen
> edges. With full maximization on no snapping occurs.
> 

ok, found two issues.

1) I snapped twice if full max was enabled, fixed

2) the way snap was enabled did this:

determine distance from edge
if top edge distance < bottom edge distance:
  snap top
else if bottom edge < top edge:
  snap bottom

and the same for the left and right sides.  The problem here is that if the
window is full maximized its edges are always equidistant.  If it is 10 pixels
from the top it has to be 10 pixels from the bottom.  This is why xterm and
what not works -- it is not perfectly maximized.  The solution was to simply
replace the top and left checks with <= instead of <.  Will commit this
momentarily.

Reply via email to