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.
This commit is contained in:
Rafał Dzięgiel
2021-04-21 17:04:09 +02:00
parent bfbbc517d5
commit ee78ffb1e4

View File

@@ -634,6 +634,11 @@ class ClapperPlayer extends GstClapper.Clapper
const clapperWidget = this.widget.get_ancestor(Gtk.Grid); const clapperWidget = this.widget.get_ancestor(Gtk.Grid);
let value, root; let value, root;
/* Ignore releases that did not trigger keypress
* e.g. left "Super" key */
if(!this.keyPressCount)
return;
this.keyPressCount = 0; this.keyPressCount = 0;
switch(keyval) { switch(keyval) {