[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: How know if desktop effects (composition) is enabled?
From:       "=?ISO-8859-1?Q?Percy_Camilo_Trive=F1o_Aucahuasi?=" <orgyforever () gmail ! com>
Date:       2008-09-02 2:09:00
Message-ID: 579229230809011909k3cd0ef1dqfeed1a44558239c8 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@undefinedfire.com>wro=
te:

> On Mon, Sep 1, 2008 at 6:11 PM, Teemu Rytilahti <tpr@d5k.net> wrote:
> > Percy Camilo Trive=F1o Aucahuasi kirjoitti viestiss=E4=E4n (l=E4hetysai=
ka 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
>

[Attachment #5 (text/html)]

<div dir="ltr">Thanks a lot guys ; )<br>
<br>
Aaron J. Seigo wrote:<br>
&gt;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">&lt;<a \
href="mailto:lmurray@undefinedfire.com">lmurray@undefinedfire.com</a>&gt;</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 &lt;<a href="mailto:tpr@d5k.net">tpr@d5k.net</a>&gt; wrote:<br> &gt; \
Percy Camilo Triveño Aucahuasi kirjoitti viestissään (lähetysaika Monday, 1.<br> &gt; \
Septemberta 2008):<br> <div class="Ih2E3d">&gt;&gt; Hello there, I didn&#39;t know \
where send this post (kwin or plasma), but it<br> &gt;&gt; seems that the plasma list \
is more active.<br> &gt;<br>
</div>&gt; This is actually kwin related, so further discussion about this should be \
done<br> &gt; there. CC&#39;ing there too.<br>
<div class="Ih2E3d">&gt;<br>
&gt;&gt; My question is: Wich are the best way to know if the composition is<br>
&gt;&gt; enabled? I mean, how my application knows if the desktop effects are<br>
&gt;&gt; enabled?<br>
&gt;<br>
</div>&gt; No idea what&#39;s the best way to do this, but toggle-compositing applet \
does it<br> &gt; by checking kwinrc, see \
trunk/playground/base/plasma/applets/toggle-<br> &gt; \
compositing/toggle_compositing.cpp for details.<br> <div class="Ih2E3d">&gt;<br>
&gt;<br>
&gt;&gt; I was reading about KWin::Extensions::compositeAvailable, but it seems \
that<br> &gt;&gt; this is a internal method ...<br>
&gt;<br>
</div>&gt; Perhaps kwin people can propose better way to do this than reading the \
config?<br> <br>
It&#39;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>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic