[compiz] Patch to wobbly snap for outputs

Mike Cook mcook at novell.com
Wed Dec 13 10:00:06 PST 2006


On Tue, Dec 12, 2006 at  5:47 PM, Mike Cook wrote: 
> If I'm reading it right in gnome- panel source in panel- struts.c it appears 
> that the panels get their strut size set to 0 if they're not at the outer edges 
> of the screen, which would seem to be why they're being ignored.  The
> start/end still get set, though.  Possibly we could specially handle a
> window with struts with a size of 0 and start/end set by looking at the
> window geometry...?
> 
> I haven't found how metacity and kwin deal with it, yet, but it looks like 
> they both have their own problems.  In quick tests metacity seems to not
> snap to an "inner" strut, whereas kwin does but constrains Y at the top for
> a strut on another output, so they're not perfect either.  I thought they
> handled better in previous tests, so I'll try more tests later.

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 put together a couple patches to try to do a
better job of handling the struts when they're set, and hacking around the
fact that gnome-panel doesn't set them (currently).

...MC


More information about the compiz mailing list