mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user