From ffa8c2f2b10080d98fd004fb172b1b4554c10424 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 16 Oct 2015 18:00:01 +0200 Subject: [PATCH] workspacesView: Return from overview when tapping on an empty workspace This works for pointers and touch on X11, there is however no pointer emulation on evdev, so touch triggers ::clicked with button==0 which is ignored. https://bugzilla.gnome.org/show_bug.cgi?id=756748 --- js/ui/workspacesView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index e2b585da4..e0c9249c7 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -421,7 +421,7 @@ const WorkspacesDisplay = new Lang.Class({ // Only switch to the workspace when there's no application // windows open. The problem is that it's too easy to miss // an app window and get the wrong one focused. - if (action.get_button() == 1 && + if ((action.get_button() == 1 || action.get_button() == 0) && this._getPrimaryView().getActiveWorkspace().isEmpty()) Main.overview.hide(); }));