How know if desktop effects (composition) is enabled?

Percy Camilo Triveño Aucahuasi orgyforever at gmail.com
Tue Sep 2 04:09:00 CEST 2008


Thanks a lot guys ; )

Aaron J. Seigo wrote:
>KWindowSystem::compositingActive()

Thanks Aaron, this works perfectly ;)

Regards
Percy




On Mon, Sep 1, 2008 at 5:30 AM, Lucas Murray <lmurray at undefinedfire.com>wrote:

> On Mon, Sep 1, 2008 at 6:11 PM, Teemu Rytilahti <tpr at d5k.net> wrote:
> > Percy Camilo Triveño Aucahuasi kirjoitti viestissään (lähetysaika Monday,
> 1.
> > Septemberta 2008):
> >> Hello there, I didn't know where send this post (kwin or plasma), but it
> >> seems that the plasma list is more active.
> >
> > This is actually kwin related, so further discussion about this should be
> done
> > there. CC'ing there too.
> >
> >> My question is: Wich are the best way to know if the composition is
> >> enabled? I mean, how my application knows if the desktop effects are
> >> enabled?
> >
> > No idea what's the best way to do this, but toggle-compositing applet
> does it
> > by checking kwinrc, see trunk/playground/base/plasma/applets/toggle-
> > compositing/toggle_compositing.cpp for details.
> >
> >
> >> I was reading about KWin::Extensions::compositeAvailable, but it seems
> that
> >> this is a internal method ...
> >
> > Perhaps kwin people can propose better way to do this than reading the
> config?
>
> It's possible to check whether compositing is enabled though the D-Bus
> method org.kde.KWin.compositingActive() .
>
> $ qdbus org.kde.kwin /KWin compositingActive
> true
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20080901/cfbed534/attachment.htm 


More information about the Plasma-devel mailing list