mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-07-01 14:40:02 +00:00
edgeoverlays: react to button release
This is good practice as it gives the user a way to «undo» the action by moving the pointer away.
This commit is contained in:
@@ -173,15 +173,12 @@ var StackOverlay = new Lang.Class({
|
||||
overlay.height = this.monitor.height - panelBox.height - prefs.vertical_margin;
|
||||
overlay.width = Tiling.stack_margin;
|
||||
|
||||
this.pressId = overlay.connect('button-press-event', () => {
|
||||
this.pressId = overlay.connect('button-release-event', () => {
|
||||
Main.activateWindow(this.target);
|
||||
if (this.clone)
|
||||
this.clone.destroy();
|
||||
return true;
|
||||
});
|
||||
this.releaseId = overlay.connect('button-release-event', () => {
|
||||
return true;
|
||||
});
|
||||
|
||||
this.enterId = overlay.connect('enter-event', () => {
|
||||
if (this.clone)
|
||||
|
||||
Reference in New Issue
Block a user