diff options
author | wm4 <wm4@nowhere> | 2015-01-16 23:07:13 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-16 23:07:13 +0100 |
commit | fc524e8a0704670d2e7daad36e54b66daf93e3d8 (patch) | |
tree | fe835d5156bbef228eb6036a390271f40bc1d16f /video/out/x11_common.c | |
parent | 1883b7cc0c2844a903d51042861fca16eb3fad02 (diff) | |
download | mpv-fc524e8a0704670d2e7daad36e54b66daf93e3d8.tar.bz2 mpv-fc524e8a0704670d2e7daad36e54b66daf93e3d8.tar.xz |
command: unify handling of fullscreen and other VO flags
The "ontop" and "border" properties already used a common
mp_property_vo_flag() function, and the corresponding VOCTRLs used the
same conventions. "fullscreen" is pretty similar, but was handled
slightly similar. Change how VOCTRL_FULLSCREEN behaves, and use the same
helper function for "fullscreen" as the other flags.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index f5a3f9e808..cb5f9c524c 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1615,12 +1615,14 @@ static void vo_x11_border(struct vo *vo) int vo_x11_control(struct vo *vo, int *events, int request, void *arg) { + struct mp_vo_opts *opts = vo->opts; struct vo_x11_state *x11 = vo->x11; switch (request) { case VOCTRL_CHECK_EVENTS: *events |= vo_x11_check_events(vo); return VO_TRUE; case VOCTRL_FULLSCREEN: + opts->fullscreen = !opts->fullscreen; vo_x11_fullscreen(vo); *events |= VO_EVENT_RESIZE; return VO_TRUE; |