From a76bf3f2c834653d0bae40b8f0b1f7121cf1e1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 13 Jan 2019 15:10:14 +0100 Subject: [PATCH] edgeoverlays: react to button release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is good practice as it gives the user a way to «undo» the action by moving the pointer away. --- stackoverlay.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stackoverlay.js b/stackoverlay.js index 0fe7527..1c7336d 100644 --- a/stackoverlay.js +++ b/stackoverlay.js @@ -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)