Em 02/09/2008, às 20:32, Aaron J. Seigo escreveu: > 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.
Yes, you are right. My intention was to say that in fact (showing the problem of counting on an ARGB visual that actually does not paint "A" correctly) :) > 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 ... Do you know if KWindowSystem::compositingActive() works also on other platforms? Cheers Boiko _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel