[gnome-shell] pointerA11yTimeout: Don't stop the pie timer if it finished successfully
- From: Olivier Fourdan <ofourdan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] pointerA11yTimeout: Don't stop the pie timer if it finished successfully
- Date: Tue, 27 Aug 2019 08:41:50 +0000 (UTC)
commit ea3f906f380013478d9e20e6749b8c34ef0d906a
Author: Jonas Dreßler <verdre v0yd nl>
Date: Thu Aug 22 10:10:23 2019 +0200
pointerA11yTimeout: Don't stop the pie timer if it finished successfully
If the pie timeout has finished successfully there's no need to cancel
the pie animation, instead we can just wait for that animation to finish
and show some visual feedback like a zoom-out animation to indicate the
click afterwards.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/688
js/ui/pointerA11yTimeout.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/pointerA11yTimeout.js b/js/ui/pointerA11yTimeout.js
index 0546f1de4b..5744ac300d 100644
--- a/js/ui/pointerA11yTimeout.js
+++ b/js/ui/pointerA11yTimeout.js
@@ -110,8 +110,10 @@ var PointerA11yTimeout = class PointerA11yTimeout {
global.display.set_cursor(Meta.Cursor.CROSSHAIR);
});
- manager.connect('ptr-a11y-timeout-stopped', (manager, device, type) => {
- pieTimer.stop();
+ manager.connect('ptr-a11y-timeout-stopped', (manager, device, type, clicked) => {
+ if (!clicked)
+ pieTimer.stop();
+
if (type == Clutter.PointerA11yTimeoutType.GESTURE)
global.display.set_cursor(Meta.Cursor.DEFAULT);
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]