From caa14e3d45cc816d85d7ce0167b97a5ea3fbd794 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 23 Sep 2016 12:09:48 +0200 Subject: 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. --- video/out/vo.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'video/out/vo.h') 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* -- cgit v1.2.3