After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 648810 - Two tooltips/labels displayed in the Dash at the same time
Two tooltips/labels displayed in the Dash at the same time
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.0.x
Other Linux
: Normal minor
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 659160 659829 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-04-27 21:33 UTC by Andrea Bolognani
Modified: 2011-12-22 10:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[Dash] Don't display two tooltips in the Dash at the same time (#648810). (740 bytes, patch)
2011-12-04 15:29 UTC, Stefano Candori
accepted-commit_now Details | Review
[Dash] Don't display two tooltips in the Dash at the same time (#648810). (1.74 KB, patch)
2011-12-04 18:39 UTC, Stefano Candori
rejected Details | Review

Description Andrea Bolognani 2011-04-27 21:33:54 UTC
Under certain conditions, two tooltips/labels are displayed at the same time in the Dash.

Steps to reproduce:

1. Enter Overview mode. There must be at least two icons in the Dash
2. Right–click on the second icon from the top. The context menu will be displayed, along with a tooltip containing the application name (eg. “Epiphany”)
3. Move the mouse over the first icon from the top
4. Left–click on the first icon
5. Move the cursor back over the second icon. Both the tooltip for the first application and for the second one will be displayed at the same time

Additionaly, the tooltip for the first application will not disappear until the cursor has been placed over the icon and then moved out of it again.
Comment 1 Florian Müllner 2011-09-22 13:59:26 UTC
*** Bug 659829 has been marked as a duplicate of this bug. ***
Comment 2 Florian Müllner 2011-09-22 14:01:23 UTC
*** Bug 659160 has been marked as a duplicate of this bug. ***
Comment 3 Stefano Candori 2011-12-04 15:29:00 UTC
Created attachment 202755 [details] [review]
[Dash] Don't display two tooltips in the Dash at the same time (#648810).
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-12-04 15:33:25 UTC
Review of attachment 202755 [details] [review]:

Makes sense.
Comment 5 Stefano Candori 2011-12-04 15:34:26 UTC
The patch fixes the problem, but i'm still not completely happy with the current behavior.
I would like to see something like this:

1. Enter Overview mode. There must be at least two icons in the Dash
2. Right–click on the second icon from the top. The context menu will be
displayed, along with a tooltip containing the application name (eg.
“Epiphany”)
3. Move the mouse over the first icon from the top
4. Left–click on the first icon
5. After a small timeout (the standard one) the tooltip of the first icon should appear. At the moment for getting this behavior we have to move the pointer out of the dash and then return back on the icon (read: the icon doens't grab the focus).

I'm investigating for fixing this.
Comment 6 Volker Sobek (weld) 2011-12-04 18:25:12 UTC
Yes, (In reply to comment #5)
> The patch fixes the problem, but i'm still not completely happy with the
> current behavior.
> I would like to see something like this:
> 
> 1. Enter Overview mode. There must be at least two icons in the Dash
> 2. Right–click on the second icon from the top. The context menu will be
> displayed, along with a tooltip containing the application name (eg.
> “Epiphany”)
> 3. Move the mouse over the first icon from the top
> 4. Left–click on the first icon
> 5. After a small timeout (the standard one) the tooltip of the first icon
> should appear. At the moment for getting this behavior we have to move the
> pointer out of the dash and then return back on the icon (read: the icon
> doens't grab the focus).
> 
> I'm investigating for fixing this.

Thas would be good!

With this patch, there's still some kind of unpredictable behavior, that would be fixed then as well:

1. Right-click on an icon to open the popup menu
2. Left-click on another app icon
3. Don't leave this other icon with the pointer (but you can move around inside of it)
4. Left-click => popup menu shows up
Comment 7 Stefano Candori 2011-12-04 18:39:58 UTC
Created attachment 202761 [details] [review]
[Dash] Don't display two tooltips in the Dash at the same time (#648810).
Comment 8 Jasper St. Pierre (not reading bugmail) 2011-12-04 18:44:20 UTC
Review of attachment 202761 [details] [review]:

I'd rather fix the st-widget code so that it tracks hover properly after we release a grab.
Comment 9 Stefano Candori 2011-12-04 18:48:24 UTC
Sure, Jasper. I'll work on it as soon as possible.
Comment 10 Stefano Candori 2011-12-04 22:10:33 UTC
Jasper, i'm investigating on your "request" but i can't find a reasonable way for doing it.
I mean, the widget must have a way to know that a grab has been released and there are two ways for achieving this:
* A signal from the global stage;
* The global stage iterates over the whole list of child actors to find out which one should get the "hover".

I'm completely wrong with these thoughts? Do you have any hint for me?
Comment 11 Jasper St. Pierre (not reading bugmail) 2011-12-15 15:47:36 UTC
I'm fine with a signal from the stage (make sure you connect to the stage the actor is currently on, not the global stage)
Comment 12 Seif Lotfy 2011-12-17 19:18:58 UTC
Seems like my work on bug 666166 also fixes this issue... Please review
Comment 13 Allan Day 2011-12-22 10:34:32 UTC
(In reply to comment #12)
> Seems like my work on bug 666166 also fixes this issue... Please review

Yep, and it's been pushed now. Thanks for the help everyone.