[compiz] Default snapping mode

David Reveman davidr at novell.com
Tue Oct 3 13:46:01 PDT 2006


I've cleaned it up and pushed it into head. I changed the name of the
option to snap_inverted. The following part of the patch was obviously
broken:

@@ -2334,6 +2335,7 @@
                XkbStateNotifyEvent *stateEvent = (XkbStateNotifyEvent *) event;
                CompAction          *action;
                unsigned int        mods = 0xffffffff;
+               Bool snap_enable = &wd->opt[WOBBLY_DISPLAY_OPTION_SNAP_ENABLE].value.b;
 
                action = &wd->opt[WOBBLY_DISPLAY_OPTION_SNAP].value.action;

should of course be:

+               Bool snap_enable = wd->opt[WOBBLY_DISPLAY_OPTION_SNAP_ENABLE].value.b;

this was the reason to why changing the gconf key didn't do anything for
you.

-David
 

On Mon, 2006-10-02 at 18:42 +0200, Thierry Reding wrote:
> Hi,
> 
> I've been using the attached patch to set a default snapping mode in the
> wobbly plugin. The patch seems to work fine, with the exception that the
> setting is not correctly read from gconf.
> 
> That is if I set the default to TRUE or FALSE in the code, then compiz
> behaves correctly, but changing the setting in gconf subsequently does not
> have any effect. I'm sure there's a trivial way to fix that and I'm just too
> blind to see it.
> 
> I would very much like to see a similar patch applied to compiz.
> 
>  - Thierry
> 
> _______________________________________________
> compiz mailing list
> compiz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/compiz




More information about the compiz mailing list