PDA

View Full Version : any resources available for libcompizconfig ??


KageSenshi
August 15th, 2007, 04:26 AM
I'm looking for documentation on how to use the C functions from libcompizconfig .. mainly on how to enable/disable plugins ...

maniac
August 15th, 2007, 07:40 AM
I'm looking for documentation on how to use the C functions from libcompizconfig .. mainly on how to enable/disable plugins ...
Sorry, there is no documentation available yet due to time constraints :(

To answer your question: You can enable or disable plugins with the function ccsPluginSetActive. The following piece of code will unload wobbly, for example:


CCSPlugin *p = ccsFindPlugin (context, "wobbly");
if (p)
ccsPluginSetActive (p, FALSE);


If you're using manual sorting (off by default), you have to write the active_plugins core setting to load or unload plugins.