diff options
author | wm4 <wm4@nowhere> | 2013-07-18 14:05:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-18 14:07:21 +0200 |
commit | c4b08a9a1149a83d7374eaea9863dd4c7cbd12d7 (patch) | |
tree | 46dbfc1850b7166948b4447332a20edefcedc779 /video/out/vo.h | |
parent | 05cf512dc56aab1aaf12884e44065cf2fc03c11e (diff) | |
download | mpv-c4b08a9a1149a83d7374eaea9863dd4c7cbd12d7.tar.bz2 mpv-c4b08a9a1149a83d7374eaea9863dd4c7cbd12d7.tar.xz |
video: remove fullscreen flags chaos
There was a MPOpts fullscreen field, a mp_vo_opts.fs field, and
VOFLAG_FULLSCREEN. Remove all these and introduce a
mp_vo_opts.fullscreen flag instead.
When VOs receive VOCTRL_FULLSCREEN, they are supposed to set the
current fullscreen mode to the state in mp_vo_opts.fullscreen. They
also should do this implicitly on config().
VOs which are capable of doing so can update the mp_vo_opts.fullscreen
if the actual fullscreen mode changes (e.g. if the user uses the
window manager controls). If fullscreen mode switching fails, they
can also set mp_vo_opts.fullscreen to the actual state.
Note that the X11 backend does almost none of this, and it has a
private fs flag to store the fullscreen flag, instead of getting it
from the WM. (Possibly because it has to deal with broken WMs.)
The fullscreen option has to be checked on config() to deal with
the -fs option, especially with something like:
mpv --fs file1.mkv --{ --no-fs file2.mkv --}
(It should start in fullscreen mode, but go to windowed mode when
playing file2.mkv.)
Wayland changes by: Alexander Preisinger <alexander.preisinger@gmail.com>
Cocoa changes by: Stefano Pigozzi <stefano.pigozzi@gmail.com>
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index 2e3df65463..96155cbafa 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -118,7 +118,6 @@ struct voctrl_screenshot_args { #define VO_NOTAVAIL -2 #define VO_NOTIMPL -3 -#define VOFLAG_FULLSCREEN 0x01 #define VOFLAG_FLIPPING 0x08 #define VOFLAG_HIDDEN 0x10 //< Use to create a hidden window #define VOFLAG_STEREO 0x20 //< Use to create a stereo-capable window |