diff options
author | wm4 <wm4@nowhere> | 2019-11-29 12:50:50 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-29 13:56:58 +0100 |
commit | 4e4252f9169edc00c747ffc66fe0b627bbca7ba7 (patch) | |
tree | f3a9c199efe81493bfdaf97f1b0af39782afa962 /video/out/x11_common.h | |
parent | b16cea750f527088be79772e7cd601f86ce62ef2 (diff) | |
download | mpv-4e4252f9169edc00c747ffc66fe0b627bbca7ba7.tar.bz2 mpv-4e4252f9169edc00c747ffc66fe0b627bbca7ba7.tar.xz |
x11: use new option stuff to implement fullscreen
- remove VOCTRL_FULLSCREEN and VOCTRL_GET_FULLSCREEN
- have your own m_config_cache for the fullscreen option
(vo->opts_cache cannot be used because you lose per-option change
notifications, and it'd be a mess anyway)
- use VOCTRL_VO_OPTS_CHANGED to update it
(it's used for convenience)
- when updating it, check for the fullscreen option
(wasn't sure how to do it best; currently, it compares the raw
option pointers, but this could be changed)
- do not send VO_EVENT_FULLSCREEN_STATE on FS change
- instead write the option on FS change
(assign in opt. struct + m_config_cache_write_opt)
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r-- | video/out/x11_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 0ae2195f05..fffc5be294 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -50,6 +50,7 @@ struct xrandr_display { struct vo_x11_state { struct mp_log *log; struct input_ctx *input_ctx; + struct m_config_cache *opts_cache; struct mp_vo_opts *opts; Display *display; int event_fd; |