Re: [compiz] Patch to wobbly snap for outputs

2006-12-18 Thread David Reveman
On Sat, 2006-12-16 at 10:36 -0700, Mike Cook wrote: On Tue, Dec 13, 2006 at 11:00 AM, Mike Cook wrote: Whoa! There are definitely some issues to address here... Kicker actually does set the struts right on those inner edges, which really throws things off in compiz. I'll see if I can't

Re: [compiz] Patch to wobbly snap for outputs

2006-12-18 Thread Mike Cook
On Mon, Dec 18, 2006 at 9:50 AM, David Reveman wrote: -if (y1 pBox- y2 y2 pBox- y1) + /* consider strut if start/end overlaps box, size ends in box, + and edge is outside box or both edge size in same output + (in order to handle struts

Re: [compiz] Patch to wobbly snap for outputs

2006-12-18 Thread David Reveman
On Mon, 2006-12-18 at 11:03 -0700, Mike Cook wrote: On Mon, Dec 18, 2006 at 9:50 AM, David Reveman wrote: -if (y1 pBox- y2 y2 pBox- y1) + /* consider strut if start/end overlaps box, size ends in box, + and edge is outside box or both edge size in

Re: [compiz] Patch to wobbly snap for outputs

2006-12-18 Thread Mike Cook
On Mon, Dec 18, 2006 at 18:18, David Reveman wrote: I have now pushed out some code to handle this properly. Here's what I think is the correct way to include each strut: (a window strut edge is valid if it's within the destination box) 1. left_strut = 0. 2. right_strut = box_max_x. 3.

Re: [compiz] Patch to wobbly snap for outputs

2006-12-12 Thread David Reveman
On Mon, 2006-12-11 at 22:48 -0700, Mike Cook wrote: On Fri, 2006-12-11 at 21:32 -0700, David Reveman wrote: After looking at this I found the correct solution to be to just snap to window struts instead of any workarea. I've pushed out changes that should take care of this. I don't have

Re: [compiz] Patch to wobbly snap for outputs

2006-12-11 Thread Mike Cook
On Fri, 2006-12-11 at 21:32 -0700, David Reveman wrote: After looking at this I found the correct solution to be to just snap to window struts instead of any workarea. I've pushed out changes that should take care of this. I don't have access to a multi-head setup right now so I can't verify

[compiz] Patch to wobbly snap for outputs

2006-12-08 Thread Mike Cook
Here's a patch to wobbly.c to handle edge snapping with multiple outputs... Also, I tweaked the window edge snapping to include dock window types, to support the case where dock windows may be on the inner edges of multiple monitors (and thus currently ignored as struts in the output workarea