panel: Switch workspaces when scrolling over activities

The activities button now shows workspace indicators instead
of a label. Adding the ability to switch workspaces without
entering the overview seems like a logical extension.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6928

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2933>
This commit is contained in:
Florian Müllner 2023-08-20 21:38:37 +02:00 committed by Marge Bot
parent b3ce7be8f3
commit c7208df8b3

View File

@ -460,7 +460,7 @@ class ActivitiesButton extends PanelMenu.Button {
Main.overview.toggle(); Main.overview.toggle();
} }
return Clutter.EVENT_PROPAGATE; return Main.wm.handleWorkspaceScroll(event);
} }
vfunc_key_release_event(event) { vfunc_key_release_event(event) {