[PATCH] make window preview support mouse click in plasma tooltip

Emdek emdeck at gmail.com
Fri Jun 12 19:35:33 CEST 2009


On 12-06-2009 at 17:44:16 Aaron J. Seigo <aseigo at kde.org> wrote:
> On Tuesday 09 June 2009, Emdek wrote:
>> OK, right.
>
> new draft of the ToolTipManager API is attached ...

Looks OK for me. ;-)


>> I'm not sure if click position is really needed, I can imagine only that
>> it could be used for positioning window menu for preview or something  
>> like
>> that.
>
> i think that if we offer a context menu, that it should be standardized  
> and
> live inside the window preview class; unfortunately that menu right now  
> comes
> out of libtaskmanger in kdebase/workspace/ which would cause some issues
> there.. hmm...

And what if someone wants to manipulate this menu? For example add own  
entries to it (useful when implementing dock like manager - adding entry  
to run new instance or edit launcher).
Menu could be shown over task entry in applet, like normal (probably looks  
better than shown in clicked point anyway).

By the way, I think that menus and tool tips looks much better if they are  
centered over item, not aligned to left edge, at least as option for tool  
tips (or default without possibility to change it) and that method in  
plasma that returns suggested point for showing popup.


More information about the Plasma-devel mailing list