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 649427 - After triggering the Activities hotcorner, ignore clicks for a split second
After triggering the Activities hotcorner, ignore clicks for a split second
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
Depends on:
Blocks:
 
 
Reported: 2011-05-05 02:31 UTC by Jean-François Fortin Tam
Modified: 2011-05-19 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
panel: Don't propagate button-release-event in _onCornerClicked() (1.04 KB, patch)
2011-05-05 15:21 UTC, Rui Matos
committed Details | Review

Description Jean-François Fortin Tam 2011-05-05 02:31:34 UTC
I sometimes find myself trying to click the Activities button but accidentally hitting the screen's top-left hotcorner. The result is that I click right after hitting the hotcorner, undoing the action I wanted to do.

It is a bit jarring and frustrating, and even though it sounds silly (I can hear you say "you should only use the hotcorner!"), I'm sure that a few users (joe plumber etc.) would experience this.

A possible solution would be to ignore clicks on the "Activities" button for ~250 miliseconds after triggering the hotcorner, just to prevent accidents like these.
Comment 1 Dan Winship 2011-05-05 10:29:41 UTC
(In reply to comment #0)
> A possible solution would be to ignore clicks on the "Activities" button for
> ~250 miliseconds after triggering the hotcorner, just to prevent accidents like
> these.

We already do ignore clicks on the Activities button for half a second after triggering the hot corner...
Comment 2 Rui Matos 2011-05-05 15:21:20 UTC
Created attachment 187286 [details] [review]
panel: Don't propagate button-release-event in _onCornerClicked()

Since both the hot corner's ClutterGroup and the hot corner's ClutterRectangle
button-release-event is connected to _onCornerClicked() we must handle it
there by returning 'true' to Clutter or else _onCornerClicked() is called
twice which defeats the HOT_CORNER_ACTIVATION_TIMEOUT logic.
Comment 3 Owen Taylor 2011-05-05 17:24:19 UTC
Review of attachment 187286 [details] [review]:

This looks good to me and after I figured out exactly when it would matter, seems to test fine. It matters:

 - If you trigger over view with the mouse hot corner
 - If the mouse is still on the very corner pixel
 - Between the point in time where the animation to the overview ends  (which is some time after 0.25 seconds - probably usually about 0.4sec depending on the latency to the initial franme) and the end of HOT_CORNER_ACTIVATION_TIMEOUT (0.5sec)

(It was easiest to test changing HOT_CORNER_ACTIVATION_TIMEOUT)
Comment 4 Rui Matos 2011-05-19 15:45:59 UTC
I think this one is safe for 3.0.2
Comment 5 Dan Winship 2011-05-19 16:09:34 UTC
Attachment 187286 [details] pushed as 63b1699 - panel: Don't propagate button-release-event in _onCornerClicked()