From 8bd5df3ac110feecfd5732f3a7c4d687c63d9155 Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Wed, 3 Sep 2014 21:14:37 +0200 Subject: wayland: only save current mode of outputs Other ones are not needed. --- video/out/wayland_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index c7cbf2fb2f..ade9142cac 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -177,7 +177,8 @@ static void output_handle_mode(void *data, { struct vo_wayland_output *output = data; - if (!output) + // only save current mode + if (!output || !(flags & WL_OUTPUT_MODE_CURRENT)) return; output->width = width; -- cgit v1.2.3