[gnome-shell/eos3.8: 210/255] fixup! Allow opening the background menu popup from the APPS view
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/eos3.8: 210/255] fixup! Allow opening the background menu popup from the APPS view
- Date: Wed, 10 Jun 2020 19:15:39 +0000 (UTC)
commit c132bc3ffb7ea8fa9c97773b0002cb750ad03820
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Apr 8 17:19:37 2020 -0300
fixup! Allow opening the background menu popup from the APPS view
Release the action when an app menu is open.
https://phabricator.endlessm.com/T29728
js/ui/appDisplay.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index d441d55d5f..be5fdfec9a 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -503,7 +503,9 @@ class AppDisplay extends BaseAppView {
'enabled', GObject.BindingFlags.SYNC_CREATE);
}
- this._bgAction = new Clutter.ClickAction();
+ this._bgAction = new Clutter.ClickAction({
+ long_press_duration: MENU_POPUP_TIMEOUT * 1.5,
+ });
if (params.addBackgroundAction) {
Main.overview.addAction(this._bgAction);
BackgroundMenu.addBackgroundMenuForAction(this._bgAction, Main.layoutManager);
@@ -644,6 +646,10 @@ class AppDisplay extends BaseAppView {
icon = new AppIcon(app, {
isDraggable: favoritesWritable,
});
+ icon.connect('menu-state-changed', menuVisible => {
+ if (menuVisible)
+ this._bgAction.release();
+ });
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]