From f3cc26567c6ac8517e23e43449bf71786f17fc07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 12 Feb 2021 22:24:28 +0100 Subject: [PATCH] Allow opening app grid by clicking overview background Referred to as "everything is lava" by the GNOME design team; include the proposed behavior to get some testing. --- ...-overviewControls-Everything-is-lava.patch | 39 +++++++++++++++++++ gnome-shell.spec | 3 ++ 2 files changed, 42 insertions(+) create mode 100644 0001-overviewControls-Everything-is-lava.patch diff --git a/0001-overviewControls-Everything-is-lava.patch b/0001-overviewControls-Everything-is-lava.patch new file mode 100644 index 0000000..5e4ce20 --- /dev/null +++ b/0001-overviewControls-Everything-is-lava.patch @@ -0,0 +1,39 @@ +From 778299a7d32058cbfc552c17648329d8e7161e44 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Thu, 11 Feb 2021 18:10:56 +0100 +Subject: [PATCH] overviewControls: Everything is lava! + +Account for the increased distance from Activities button to the +show-apps button by allowing clicks on the background to bring up +the app grid. +--- + js/ui/overviewControls.js | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js +index 32388621e..06c875332 100644 +--- a/js/ui/overviewControls.js ++++ b/js/ui/overviewControls.js +@@ -247,6 +247,7 @@ class ControlsManager extends St.Widget { + style_class: 'controls-manager', + x_expand: true, + y_expand: true, ++ reactive: true, + clip_to_allocation: true, + }); + +@@ -321,6 +322,11 @@ class ControlsManager extends St.Widget { + this.dash.showAppsButton.connect('notify::checked', + this._onShowAppsButtonToggled.bind(this)); + ++ const clickAction = new Clutter.ClickAction(); ++ clickAction.connect('clicked', ++ () => (this.dash.showAppsButton.checked = true)); ++ this.add_action(clickAction); ++ + Main.ctrlAltTabManager.addGroup( + this.appDisplay, + _('Applications'), +-- +2.29.2 + diff --git a/gnome-shell.spec b/gnome-shell.spec index 16e43bc..891c276 100644 --- a/gnome-shell.spec +++ b/gnome-shell.spec @@ -11,6 +11,8 @@ Source0: http://download.gnome.org/sources/gnome-shell/40/%{name}-40.alpha.1.1-2 # Replace Epiphany with Firefox in the default favourite apps list Patch1: gnome-shell-favourite-apps-firefox.patch +Patch2: 0001-overviewControls-Everything-is-lava.patch + %define eds_version 3.33.1 %define gnome_desktop_version 3.35.91 %define glib2_version 2.56.0 @@ -223,6 +225,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/evolution-calendar.de %changelog * Fri Feb 12 2021 Florian Müllner - 40.0~alpha.1.1-6.20210212git829a096ba - Update snapshot to current upstream +- Allow opening app picker by clicking overview background * Fri Feb 12 2021 Milan Crha - 40.0~alpha.1.1-5.20210202git9ce666ac1 - Rebuilt for evolution-data-server soname version bump