Start fullscreen playback after toplevel state is changed

This commit is contained in:
Rafostar
2020-10-30 22:51:30 +01:00
parent 2260c09f2e
commit 19e1a20bf7
2 changed files with 18 additions and 11 deletions

View File

@@ -384,6 +384,10 @@ var Widget = GObject.registerClass({
this.showControls(isFullscreen);
this.player.widget.grab_focus();
if(this.player.playOnFullscreen && isFullscreen) {
this.player.playOnFullscreen = false;
this.player.play();
}
this.emit('fullscreen-changed', isFullscreen);
debug(`interface in fullscreen mode: ${isFullscreen}`);
}