summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wlshm.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_wlshm.c')
-rw-r--r--video/out/vo_wlshm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/video/out/vo_wlshm.c b/video/out/vo_wlshm.c
index dbfa386789..f6c37714da 100644
--- a/video/out/vo_wlshm.c
+++ b/video/out/vo_wlshm.c
@@ -219,10 +219,7 @@ static int resize(struct vo *vo)
p->free_buffers = buf->next;
talloc_free(buf);
}
- int ret = mp_sws_reinit(p->sws);
- if (!wl->vo_opts->fullscreen && !wl->vo_opts->window_maximized)
- wl_surface_commit(wl->surface);
- return ret;
+ return mp_sws_reinit(p->sws);
}
static int control(struct vo *vo, uint32_t request, void *data)