From 373714f161836b1dac87fcee3383f6b3526ed979 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Fri, 13 Nov 2020 20:12:26 +0100 Subject: [PATCH] Performance: do not try to render controls box when empty --- clapper_src/widget.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clapper_src/widget.js b/clapper_src/widget.js index 60f7355d..270ac753 100644 --- a/clapper_src/widget.js +++ b/clapper_src/widget.js @@ -198,6 +198,8 @@ var Widget = GObject.registerClass({ this.revealerBottom.remove(this.controls); this.controlsBox.append(this.controls); } + + this.controlsBox.set_visible(!isOnTop); } _onMediaInfoUpdated(player, mediaInfo)