Tool tips - again

Emdek emdeck at gmail.com
Tue Apr 14 15:29:35 CEST 2009


On Tuesday 14-04-2009 15:07:49 Lucas Murray wrote:
> On Tue, Apr 14, 2009 at 6:23 PM, Emdek <emdeck at gmail.com> wrote:
>> By the way, are there plans for adding possibility to query  
>> KWindowSystem to check if given effect is available (for example check  
>> if we are using KWin, have Compositing and effect is enabled in  
>> settings etc., just check if we have all needed things to use it)?
>> Then checking if task bar previews are available (or mentioned effect  
>> for showing windows) could be much cleaner I think (I've read about  
>> plans to add preview of desktops to pager, so there it could be also  
>> used).
>
> The "non-hackish" way [*] to test for support is to make KWin provide a  
> D-Bus function that returns a list of all active desktop effects, then  
> all you need to do is check if "taskbarthumbnails" or "highlightwindow"  
> is listed. This of course cannot be done in KDE's service name domain  
> [**] if you wanted to keep the possibility of compositor-independence  
> [***] like what the current "hack" provides. This list could then be  
> available in KWindowSystem I guess (Assuming if all compositors name  
> effects the same [****]).

Ok, so it looks like that current solution is the best for now.






More information about the Plasma-devel mailing list