mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
ActivitiesButton: fix overview being toggled while still animating
Adds the missing checks for whether we should toggle the overview, on button and key release. https://bugzilla.gnome.org/show_bug.cgi?id=756925
This commit is contained in:
parent
6d22670307
commit
0c72d1fcbd
1 changed files with 4 additions and 2 deletions
|
|
@ -459,7 +459,8 @@ const ActivitiesButton = new Lang.Class({
|
|||
|
||||
if (event.type() == Clutter.EventType.TOUCH_END ||
|
||||
event.type() == Clutter.EventType.BUTTON_RELEASE)
|
||||
Main.overview.toggle();
|
||||
if (Main.overview.shouldToggleByCornerOrButton())
|
||||
Main.overview.toggle();
|
||||
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
},
|
||||
|
|
@ -467,7 +468,8 @@ const ActivitiesButton = new Lang.Class({
|
|||
_onKeyRelease: function(actor, event) {
|
||||
let symbol = event.get_key_symbol();
|
||||
if (symbol == Clutter.KEY_Return || symbol == Clutter.KEY_space) {
|
||||
Main.overview.toggle();
|
||||
if (Main.overview.shouldToggleByCornerOrButton())
|
||||
Main.overview.toggle();
|
||||
}
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue