mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Add middle click to close on window previews
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user