<div dir="ltr">Thanks a lot guys ; )<br>
<br>
Aaron J. Seigo wrote:<br>
>KWindowSystem::compositingActive()<br>
<br>
Thanks Aaron, this works perfectly ;)<br>
<br>
Regards<br>
Percy<br><br><br><br><br><div class="gmail_quote">On Mon, Sep 1, 2008 at 5:30 AM, Lucas Murray <span dir="ltr"><<a href="mailto:lmurray@undefinedfire.com">lmurray@undefinedfire.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Sep 1, 2008 at 6:11 PM, Teemu Rytilahti <<a href="mailto:tpr@d5k.net">tpr@d5k.net</a>> wrote:<br>
> Percy Camilo Triveño Aucahuasi kirjoitti viestissään (lähetysaika Monday, 1.<br>
> Septemberta 2008):<br>
<div class="Ih2E3d">>> Hello there, I didn't know where send this post (kwin or plasma), but it<br>
>> seems that the plasma list is more active.<br>
><br>
</div>> This is actually kwin related, so further discussion about this should be done<br>
> there. CC'ing there too.<br>
<div class="Ih2E3d">><br>
>> My question is: Wich are the best way to know if the composition is<br>
>> enabled? I mean, how my application knows if the desktop effects are<br>
>> enabled?<br>
><br>
</div>> No idea what's the best way to do this, but toggle-compositing applet does it<br>
> by checking kwinrc, see trunk/playground/base/plasma/applets/toggle-<br>
> compositing/toggle_compositing.cpp for details.<br>
<div class="Ih2E3d">><br>
><br>
>> I was reading about KWin::Extensions::compositeAvailable, but it seems that<br>
>> this is a internal method ...<br>
><br>
</div>> Perhaps kwin people can propose better way to do this than reading the config?<br>
<br>
It's possible to check whether compositing is enabled though the D-Bus<br>
method org.kde.KWin.compositingActive() .<br>
<br>
$ qdbus org.kde.kwin /KWin compositingActive<br>
true<br>
</blockquote></div><br></div>