[gnome-shell] appDisplay: Open new window on middle-click



commit 620e3cef20710ef29996bbe13f0f66a09fa97c6f
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Feb 11 16:32:11 2014 +0100

    appDisplay: Open new window on middle-click
    
    The current middle-click action of opening a new window on a new
    workspace is a bit peculiar; it is also not overly hard to achieve
    the same result by moving a new window to the desired workspace or
    selecting a workspace before opening a new window. Just opening
    a new window is also a more common action, so having a shortcut
    available that doesn't require a modifier is a good idea as well;
    change the middle-click behavior accordingly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695010

 js/ui/appDisplay.js |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 4af4198..0d53289 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1388,9 +1388,6 @@ const AppIcon = new Lang.Class({
         if (button == 1) {
             this._onActivate(Clutter.get_current_event());
         } else if (button == 2) {
-            // Last workspace is always empty
-            let launchWorkspace = global.screen.get_workspace_by_index(global.screen.n_workspaces - 1);
-            launchWorkspace.activate(global.get_current_time());
             this.app.open_new_window(-1);
             Main.overview.hide();
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]