diff --git a/clapper_src/player.js b/clapper_src/player.js index db7a53e7..776ed62c 100644 --- a/clapper_src/player.js +++ b/clapper_src/player.js @@ -322,7 +322,7 @@ class ClapperPlayer extends PlayerBase let clapperWidget = this.widget.get_ancestor(Gtk.Grid); if(!clapperWidget.fullscreenMode) { - let size = window.get_size(); + let size = window.get_default_size(); if(size[0] > 0 && size[1] > 0) clapperWidget._saveWindowSize(size); } diff --git a/clapper_src/widget.js b/clapper_src/widget.js index 500f9c7b..707174a1 100644 --- a/clapper_src/widget.js +++ b/clapper_src/widget.js @@ -135,7 +135,7 @@ var Widget = GObject.registerClass({ return; let root = this.get_root(); - let size = root.get_size(); + let size = root.get_default_size(); this._saveWindowSize(size); @@ -160,7 +160,7 @@ var Widget = GObject.registerClass({ ? this.floatSize : this.windowSize; - root.resize(resize[0], resize[1]); + root.set_default_size(resize[0], resize[1]); debug(`resized window: ${resize[0]}x${resize[1]}`); this.revealerBottom.showChild(false);