From ee78ffb1e4d5a0573858af77efb79ffba1000b16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 21 Apr 2021 17:04:09 +0200 Subject: [PATCH] Fix seeks when window tiling with Super key Super key is consumed by shell and never reaches app key press detection. Use that to fix seeking when tiling window by ignoring all key releases that did not have a key press beforehand. --- src/player.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/player.js b/src/player.js index 5ba16ea0..6068eac7 100644 --- a/src/player.js +++ b/src/player.js @@ -634,6 +634,11 @@ class ClapperPlayer extends GstClapper.Clapper const clapperWidget = this.widget.get_ancestor(Gtk.Grid); let value, root; + /* Ignore releases that did not trigger keypress + * e.g. left "Super" key */ + if(!this.keyPressCount) + return; + this.keyPressCount = 0; switch(keyval) {