From fc524e8a0704670d2e7daad36e54b66daf93e3d8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 16 Jan 2015 23:07:13 +0100 Subject: 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. --- video/out/wayland_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/wayland_common.c') diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index bf318d7bbc..843049816e 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1189,6 +1189,7 @@ int vo_wayland_control (struct vo *vo, int *events, int request, void *arg) *events |= vo_wayland_check_events(vo); return VO_TRUE; case VOCTRL_FULLSCREEN: + vo->opts->fullscreen = !vo->opts->fullscreen; vo_wayland_fullscreen(vo); return VO_TRUE; case VOCTRL_ONTOP: -- cgit v1.2.3