Add a new way to open an application on a new workspace
Allow using the middle mouse button to open a new instance of an application on a new workspace. The middle mouse button function can be achieved by clicking the left and right mouse buttons together with a two buttons mouse or holding Ctrl while clicking with a single button mouse. https://bugzilla.gnome.org/show_bug.cgi?id=591645
This commit is contained in:

committed by
Florian Müllner

parent
508001bfde
commit
21ff050a40
@ -457,6 +457,11 @@ AppWellIcon.prototype = {
|
||||
let button = event.get_button();
|
||||
if (button == 1) {
|
||||
this._onActivate(event);
|
||||
} else if (button == 2) {
|
||||
Main.overview.workspaces.addWorkspace();
|
||||
this.emit('launching');
|
||||
this.app.open_new_window();
|
||||
Main.overview.hide();
|
||||
} else if (button == 3) {
|
||||
// Don't bind to the right click here; we want left click outside the
|
||||
// area to deactivate as well.
|
||||
|
Reference in New Issue
Block a user