From 4e2574f025b9f143140008cbed48f6ee9705f813 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 2 Nov 2014 20:26:51 +0100 Subject: command: make window-scale property observable Add a generic mechanism to the VO to relay "extra" events from VO to player. Use it to notify the core of window resizes, which in turn will be used to mark all affected properties ("window-scale" in this case) as changed. (I refrained from hacking this as internal command into input_ctx, or to poll the state change, etc. - but in the end, maybe it would be best to actually pass the client API context directly to the places where events can happen.) --- video/out/vo_xv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/vo_xv.c') diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c index 1ea16558ac..07495fb89e 100644 --- a/video/out/vo_xv.c +++ b/video/out/vo_xv.c @@ -851,6 +851,7 @@ static int control(struct vo *vo, uint32_t request, void *data) int r = vo_x11_control(vo, &events, request, data); if (events & (VO_EVENT_EXPOSE | VO_EVENT_RESIZE)) resize(vo); + vo_event(vo, events); return r; } -- cgit v1.2.3