Re: [compiz] CompDisplay from loaderLoadPlugin

2007-03-05 Thread Travis Watkins

On 3/5/07, David Reveman <[EMAIL PROTECTED]> wrote:

Wrap setDisplayOption and track changes to the active_plugins option.
That will let you know when a plugin gets loaded or unloaded.



That's what I was doing originally but then you have to keep a copy of
the active_changes list around and compare old to new. Wrapping
initPluginFor(Display|Screen) works fine though.

--
Travis Watkins
http://www.realistanew.com
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] CompDisplay from loaderLoadPlugin

2007-03-05 Thread David Reveman
On Fri, 2007-03-02 at 23:43 -0600, Travis Watkins wrote:
> I'm trying to use custom functions for loaderLoadPlugin and
> loaderUnloadPlugin to register/unregister plugin paths in the dbus
> plugin as needed but I need to get access to a CompDisplay or
> DbusDisplay in order to do so. Is there any way to get access to this?

Wrap setDisplayOption and track changes to the active_plugins option.
That will let you know when a plugin gets loaded or unloaded.

- David

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] CompDisplay from loaderLoadPlugin

2007-03-03 Thread Travis Watkins

On 3/3/07, Mike Dransfield <[EMAIL PROTECTED]> wrote:

Could you wrap initPluginForDisplay/Screen instead?

This will give you the correct structures plus it will enable
the right number of screen option objects at the right time



Awesome, that looks perfect.

--
Travis Watkins
http://www.realistanew.com
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] CompDisplay from loaderLoadPlugin

2007-03-03 Thread Mike Dransfield

Travis Watkins wrote:

I'm trying to use custom functions for loaderLoadPlugin and
loaderUnloadPlugin to register/unregister plugin paths in the dbus
plugin as needed but I need to get access to a CompDisplay or
DbusDisplay in order to do so. Is there any way to get access to this?



Could you wrap initPluginForDisplay/Screen instead?

This will give you the correct structures plus it will enable
the right number of screen option objects at the right time

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


[compiz] CompDisplay from loaderLoadPlugin

2007-03-02 Thread Travis Watkins

I'm trying to use custom functions for loaderLoadPlugin and
loaderUnloadPlugin to register/unregister plugin paths in the dbus
plugin as needed but I need to get access to a CompDisplay or
DbusDisplay in order to do so. Is there any way to get access to this?

--
Travis Watkins
http://www.realistanew.com
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz