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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel