[PATCH] make window preview support mouse click in plasma tooltip
Emdek
emdeck at gmail.com
Tue Jun 9 09:43:08 CEST 2009
On 08-06-2009 at 23:40:45 Aaron J. Seigo <aseigo at kde.org> wrote:
> On Monday 08 June 2009, Emdek wrote:
>> On 08-06-2009 at 19:22:12 Aaron J. Seigo <aseigo at kde.org> wrote:
>> > my updated patch to kdelibs is attached: can others on plasma-devel
>> give
>> > it a
>> > quick API review please? thank you.
>>
>> Couldn't we implement idea discussed previously and use signal similar
>> to
>> this:
>>
>> windowPreviewClicked(wid, buttons)
>
> ah, right, mouse buttons. that needs to be added.
>
> do we need the screen position of the click? not for window previews,
> probably, but for links it might be useful?
Could it be possible to send whole event object? Then we got position,
buttons etc.
> i'd like to avoid having multiple signals for what gets clicked as well,
> though perhaps having one for window previews and one for links might
> make
> sense.. hm.
In previous discussion it was decided to always use KUrl (also for passing
wid) but two similar signals looks cleaner probably.
>> And now when we will have tool tips that could be hovered then we should
>> add that glow animation for previews (as discussed).
>
> that's an orthogonal feature, but one i'd like to see in there
> eventually,
> yes.
OK, so I'll try to prepare path when work on 4.4 will begin. But there is
small problem, in my applet each preview has own widget (I could simply
use enter and leave events), but in Plasma there is only one big widget.
Is there easy and efficient way to check when mouse enter and leaves given
rectangle in widget (other than calculating it with every mouse move)?
There was also idea to use tool tip as window switcher for groups (good
and tested already).
But in case of default tool tips this would need change in limit of
windows shown in tool tip (but are people really grouping more than four
tasks very often?).
There is also case of Composite less or with thumbnails disabled, but for
them we can show vertical list of tasks (maybe this could be also used
when we have more than four tasks in group).
Additionally, as I said some time ago, window titles under preview would
be very useful (especially when grouping by application).
More information about the Plasma-devel
mailing list