[PATCH] BUG 199107 make the popup dialog of group hide automatically on taskbar

"潘卫平(Peter Pan)" wppan at redflag-linux.com
Fri Jul 10 15:37:01 CEST 2009


Aaron J. Seigo 写道:
> On Tuesday 07 July 2009, 潘卫平 wrote:
>> Reproduce steps:
>> 1、set "By Program Name" grouping strategy, uncheck "Only when the
>> taskbar is full".
>> 2、run one konsole application.
>> 3、run two dolphin applications, they will group together on the taskbar.
>> 4、click the dolphin group, a popup dialog will show.
>> 5、move the mouse over konsole on the taskbar, a tooltip will show, but
>> the popup dialog of dolphin doesn't hide automatically. It is still
>> there! see
>> https://bugs.kde.org/show_bug.cgi?id=199107#c2
> 
> i don't think the solution is to automatically hide the popup, however. that 
> will just be rather annoying if you move the mouse out of the popup 
> accidentally or just to get it out of the way so you can read it better.
>
I still think that hiding the popup automatically is more convenient 
than rejecting showing tooltip and context menu.

> what could happen is to reject showing tooltips when there is a popup. that 
> seems more sensible to me, as then what the user specifically chose to show 
> remains and the conflicting mouse-overs are suppressed.
> 
> in AbstractTaskItem::toolTipAboutToShow() there could be a check added to see 
> if there are any group popups and if so to just set an empty ToolTipContent 
> object.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel


Since AbstractTaskItem has a m_applet pointer, I add a function to hide 
the popup dialog in class Tasks. Every time a WindowTaskItem or a 
TaskGroupItem wants to show a tooltip or a context menu, it first calls 
that function to hide the popup dialog which is showing.

regards

-- 
潘卫平(Peter Pan)
Red Flag Software Co., Ltd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdebase-plasma-tasks-grouphide.patch
Type: text/x-patch
Size: 2513 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090710/b3b2b694/attachment-0001.patch 


More information about the Plasma-devel mailing list