<div class="gmail_quote">On Fri, Jun 18, 2010 at 2:26 PM, Sam Spilsbury <span dir="ltr"><<a href="mailto:smspillaz@gmail.com">smspillaz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 6/18/10, Jay Catherwood <<a href="mailto:jay.catherwood@gmail.com">jay.catherwood@gmail.com</a>> wrote:<br>
> (1) The snap to windows checkbox in ccsm has no effect because Snap treats<br>
> any window with struts as an edge, and all windows have struts.<br>
<br>
</div>Didn't apply this one. w->struts () should return NULL if there are no<br>
struts. If all windows have struts then this is a bug in core<br></blockquote><div><br>All right. CompWindow::updateStruts does give all windows struts. I turned that off and the snapping problem is fixed for me. Patch is attached.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
> (2) Windows don't snap to the left edge because it has been erased. The<br>
> right edge doesn't seem to get erased because it is slightly offscreen, so I<br>
> did the same thing with the left. I don't know if that is exactly the right<br>
> solution, but at least it works.<br>
<br>
</div>Applied,<br></blockquote></div><br>It turns out this bug was an artifact of all windows having struts. I think you can revert this if you apply the patch to updateStruts.<br><br>Thanks,<br>Jay<br>