diff options
author | Ricardo Vieira <ricardo.vieira@tecnico.ulisboa.pt> | 2015-10-19 16:56:27 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-20 00:15:07 +0200 |
commit | 251107076b26e87f49385f7e82293d17ba27a9cf (patch) | |
tree | ceb139ae4fbd2fa6a1cb40c832fdc98dde426296 /video/out | |
parent | 750c29766f9f2ef3df62613fa8eccb6fca0e2de2 (diff) | |
download | mpv-251107076b26e87f49385f7e82293d17ba27a9cf.tar.bz2 mpv-251107076b26e87f49385f7e82293d17ba27a9cf.tar.xz |
Revert "vo_wayland: define opaque region"
This reverts commit c10fb4ce9fcd3dbbf69741eb8499c4cfabbf5412.
This is already done in vo_wayland.c:resize,324 doing it here makes the window bigger before the video resizes showing a black area while dragging the border.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/wayland_common.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 7c8bfe442c..4e9958d79e 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -795,15 +795,6 @@ static void schedule_resize(struct vo_wayland_state *wl, wl->window.events |= VO_EVENT_RESIZE; wl->vo->dwidth = width; wl->vo->dheight = height; - - struct wl_region *region = wl_compositor_create_region(wl->display.compositor); - - if (region) { - wl_region_add(region, x, y, width, height); - wl_surface_set_opaque_region(wl->window.video_surface, region); - wl_surface_commit(wl->window.video_surface); - wl_region_destroy(region); - } } static void frame_callback(void *data, |