kwin clients - virtual colorsSupported()?

Lubos Lunak l.lunak at suse.cz
Tue Nov 27 18:37:36 GMT 2007


On Tuesday 27 of November 2007, Matthew Woehlke wrote:
> aseigo and I have been having a little discussion [1] about kwin colors,
> the upshot of which seems to be that kwinclients should communicate what
> colors they support, similar I suppose to how they report what buttons
> they support.
>
> Without knowing kwin very well, my gut reaction is that the "best" way
> to do this is with a pure virtual, which means making the change *now*
> since it is BIC+SIC. (aseigo says a getter+setter can be done BC but
> agrees that a virtual is probably better.)
>
> Lubos, your thoughts?

 If all you need is querying a decoration whether it supports something, see 
KDecorationFactory::supports(). This is already done for buttons - there's 
one flag for querying whether the client supports announcing supported 
buttons :) and then there's one flag per button. You can have the same for 
window roles.

 And, actually, KDecoration was designed to support adding virtuals by 
subclassing to KDecoration2, but I guess KCommonDecoration has complicated 
this part :-/.

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http//www.suse.cz




More information about the kde-core-devel mailing list