summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-03-20 02:56:49 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-03-29 22:44:27 +0300
commit8d25a357ef29b24526be76ed04396cac3ecc9f62 (patch)
tree22d684d0dc82c43132e317b5a849d89b7dbda2c6 /command.c
parent73fb23c1cfc40a9e0683f0a82cb1a669005eaa67 (diff)
downloadmpv-8d25a357ef29b24526be76ed04396cac3ecc9f62.tar.bz2
mpv-8d25a357ef29b24526be76ed04396cac3ecc9f62.tar.xz
Set the fullscreen option value too when fs state changes
If the fullscreen state was changed via keyboard commands or the slave interface the option value was not changed. However that value is used if the VO is reconfigured. Set the option too to avoid switching back to the previous state in that case.
Diffstat (limited to 'command.c')
-rw-r--r--command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/command.c b/command.c
index caf1ca5037..0138052c2a 100644
--- a/command.c
+++ b/command.c
@@ -1027,6 +1027,7 @@ static int mp_property_fullscreen(m_option_t *prop, int action, void *arg,
#endif
if (mpctx->video_out->config_ok)
vo_control(mpctx->video_out, VOCTRL_FULLSCREEN, 0);
+ mpctx->opts.fullscreen = vo_fs;
return M_PROPERTY_OK;
default:
return m_property_flag(prop, action, arg, &vo_fs);