summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wayland.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2016-07-30 11:53:44 +0100
committerwm4 <wm4@nowhere>2016-07-30 15:33:00 +0200
commit45687c17f79eb1bff58e48cd2bca71f42556ed20 (patch)
tree334da17c61e5a684ba9133e036e57439cc15f47f /video/out/vo_wayland.c
parent2f986a598039b23862eaa870076c0c8fc2e9f86a (diff)
downloadmpv-45687c17f79eb1bff58e48cd2bca71f42556ed20.tar.bz2
mpv-45687c17f79eb1bff58e48cd2bca71f42556ed20.tar.xz
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.
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r--video/out/vo_wayland.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index 236421e4ef..7761223111 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -314,7 +314,6 @@ static bool resize(struct priv *p)
p->x = x;
p->y = y;
- p->wl->window.events = 0;
p->vo->want_redraw = true;
return true;
}