From 45687c17f79eb1bff58e48cd2bca71f42556ed20 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Sat, 30 Jul 2016 11:53:44 +0100 Subject: wayland_common: fix fullscreen image switching bug The problem was that when in fullscreen, switching between images did not issue a resize event, causing none of the images to be rendered correctly. This fixes the problem by issuing a resize event with the screen width and height. This commit also moves the zeroing of the events field to when it gets retrieved by mpv rather than randomly after a resize in the vo/backend code. --- video/out/opengl/context_wayland.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'video/out/opengl/context_wayland.c') diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c index b1d9a32bca..efb6128b92 100644 --- a/video/out/opengl/context_wayland.c +++ b/video/out/opengl/context_wayland.c @@ -59,9 +59,7 @@ static void egl_resize(struct vo_wayland_state *wl) /* set size for mplayer */ wl->vo->dwidth = scale*wl->window.width; wl->vo->dheight = scale*wl->window.height; - wl->vo->want_redraw = true; - wl->window.events = 0; } static int egl_create_context(struct vo_wayland_state *wl, -- cgit v1.2.3