From 6949a6e9ef5839b8f3074ed37e29d3da7e927f73 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Mon, 7 Dec 2020 17:29:34 +0100 Subject: [PATCH] Disable controls focus when not in fullscreen This should keep focus on video and make seeking from keyboard always work. --- clapper_src/buttons.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clapper_src/buttons.js b/clapper_src/buttons.js index 6672e5f9..07c6cf66 100644 --- a/clapper_src/buttons.js +++ b/clapper_src/buttons.js @@ -12,6 +12,7 @@ class ClapperCustomButton extends Gtk.Button margin_bottom: 4, margin_start: 2, margin_end: 2, + can_focus: false, }; Object.assign(opts, defaults); @@ -33,6 +34,7 @@ class ClapperCustomButton extends Gtk.Button this.margin_top = (isFullscreen) ? 6 : 4; this.margin_start = (isFullscreen) ? 3 : 2; this.margin_end = (isFullscreen) ? 3 : 2; + this.can_focus = isFullscreen; this.isFullscreen = isFullscreen; }