How know if desktop effects (composition) is enabled?

Aaron J. Seigo aseigo at kde.org
Wed Sep 3 01:32:49 CEST 2008


On Tuesday 02 September 2008, Gustavo Pichorim Boiko wrote:
> Em 01/09/2008, às 08:40, Lubos Lunak escreveu:
> > On Monday 01 of September 2008, Teemu Rytilahti wrote:
> >> Percy Camilo Triveño Aucahuasi kirjoitti viestissään (lähetysaika
> >> Monday,
> >> 1.
> >>
> >>> My question is: Wich are the best way to know if the composition is
> >>> enabled?
> >
> > KWindowSystem::compositingActive()
> >
> >>> I mean, how my application knows if the desktop effects are
> >>> enabled?
> >
> > Does it need to care?
>
> Maybe for deciding whether to use or not an ARGB visual?

you probably want to always have an argb visual so you can paint translucently 
when compositing is turned on.

what we primarily use KWindowSystem::compositingActive() is to pick whether 
we'll be rendering a square block for the background or something with nice 
fancy edges ...

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080902/fb6ef1c4/attachment.sig 


More information about the Plasma-devel mailing list