diff options
author | wm4 <wm4@nowhere> | 2016-09-23 12:09:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-23 12:09:48 +0200 |
commit | caa14e3d45cc816d85d7ce0167b97a5ea3fbd794 (patch) | |
tree | 0c697ccc24f99b381e433687d1b20b128bf0e93a /video/out/vo.h | |
parent | 3a436823555b4564775c602289d8bb682c435d90 (diff) | |
download | mpv-caa14e3d45cc816d85d7ce0167b97a5ea3fbd794.tar.bz2 mpv-caa14e3d45cc816d85d7ce0167b97a5ea3fbd794.tar.xz |
x11: fix external fullscreen update
On x11, you can change the fullscreen via the window manager and without
mpv's involvement. In these cases, the internal fullscreen flag has to
be updated.
The hack used for this didn't really work properly. Change it
accordingly. The important thing is that the shadow copy of the option
is updated. This is still not really ideal.
Fixes #3570.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index d76329ffeb..5dbdc3fa89 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -43,9 +43,12 @@ enum { VO_EVENT_AMBIENT_LIGHTING_CHANGED = 1 << 4, // Special mechanism for making resizing with Cocoa react faster VO_EVENT_LIVE_RESIZING = 1 << 5, + // Window fullscreen state changed via external influence. + VO_EVENT_FULLSCREEN_STATE = 1 << 6, // Set of events the player core may be interested in. - VO_EVENTS_USER = (VO_EVENT_RESIZE | VO_EVENT_WIN_STATE), + VO_EVENTS_USER = VO_EVENT_RESIZE | VO_EVENT_WIN_STATE | + VO_EVENT_FULLSCREEN_STATE, }; enum mp_voctrl { @@ -75,6 +78,8 @@ enum mp_voctrl { VOCTRL_BORDER, VOCTRL_ALL_WORKSPACES, + VOCTRL_GET_FULLSCREEN, + VOCTRL_UPDATE_WINDOW_TITLE, // char* VOCTRL_UPDATE_PLAYBACK_STATE, // struct voctrl_playback_state* |