Add middle click to close on window previews

This commit is contained in:
Jack Wickham
2017-07-01 15:25:26 +01:00
parent 0812521f29
commit c7fae8e42c

View File

@@ -750,6 +750,17 @@ const thumbnailPreview = new Lang.Class({
}));
}
}
},
_onButtonReleaseEvent: function(actor, event) {
this.actor.remove_style_pseudo_class ('active');
if (event.get_button() == 2) {
// Middle click
this._closeWindow();
} else {
this.activate(event);
}
return Clutter.EVENT_STOP;
}
});