mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
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).
This commit is contained in:
parent
f923fd720c
commit
4ea60a3d0e
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user