diff --git a/src/revealers.js b/src/revealers.js index 21ffae1e..f601d155 100644 --- a/src/revealers.js +++ b/src/revealers.js @@ -321,21 +321,21 @@ class ClapperControlsRevealer extends Gtk.Revealer const isStick = (isFloating && settings.get_boolean('floating-stick')); DBus.shellWindowEval('stick', isStick); + + this.root.child.refreshWindowTitle(this.root.title); } _onControlsRevealed() { - const clapperWidget = this.root.child; - if(!clapperWidget) return; - if(this.child_revealed) { + const clapperWidget = this.root.child; + if(!clapperWidget) return; + const [width, height] = this.root.get_default_size(); clapperWidget.player.widget.height_request = -1; this.root.set_default_size(width, height); } - - clapperWidget.refreshWindowTitle(this.root.title); } _onUnrevealTick(playerWidget, width, height) diff --git a/src/widget.js b/src/widget.js index bf1dd5d5..34334515 100644 --- a/src/widget.js +++ b/src/widget.js @@ -326,7 +326,7 @@ class ClapperWidget extends Gtk.Grid refreshWindowTitle(title) { - const isFloating = !this.controlsRevealer.child_revealed; + const isFloating = !this.controlsRevealer.reveal_child; const pipSuffix = ' - PiP'; const hasPipSuffix = title.endsWith(pipSuffix);