From 4ea60a3d0ec4f01f3c319d6f155653f4f890632f Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Mon, 31 Jan 2011 21:15:59 +0200 Subject: [PATCH] options: mark -fs with CONF_NOSAVE to keep state between files Most of the time users want to keep current fullscreen state when switching to another file, rather than always resetting to the global default that was determined when the command line was parsed. Add the CONF_NOSAVE flag to the -fs option to achieve this. The change means that the fullscreen state from the previous file is kept unless there is an explicit file-specific -fs or -nofs setting for the new file (or in case file groups are used, moving to the new file enters a group with explicitly specified state). --- cfg-mplayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 10d19c21eb..391f833e05 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -150,7 +150,7 @@ const m_option_t mplayer_opts[]={ // video mode switching: (x11,xv,dga) OPT_MAKE_FLAGS("vm", vidmode, 0), // start in fullscreen mode: - OPT_MAKE_FLAGS("fs", fullscreen, 0), + OPT_MAKE_FLAGS("fs", fullscreen, CONF_NOSAVE), // set fullscreen switch method (workaround for buggy WMs) {"fsmode", "-fsmode is obsolete, avoid it and use -fstype instead.\nIf you really want it, try -fsmode-dontuse, but don't report bugs!\n", CONF_TYPE_PRINT, CONF_RANGE, 0, 31, NULL}, {"fsmode-dontuse", &vo_fsmode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},