summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index d132601596..67ce7728b2 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -661,6 +661,11 @@ static void registry_handle_global (void *data,
xdg_shell_use_unstable_version(wl->display.shell,
XDG_SHELL_VERSION_CURRENT);
}
+
+ else if (strcmp(interface, "wl_scaler") == 0) {
+
+ wl->display.scaler = wl_registry_bind(reg, id, &wl_scaler_interface, 1);
+ }
}
static void registry_handle_global_remove (void *data,
@@ -807,6 +812,9 @@ static void destroy_display (struct vo_wayland_state *wl)
}
}
+ if (wl->display.scaler)
+ wl_scaler_destroy(wl->display.scaler);
+
if (wl->display.shm)
wl_shm_destroy(wl->display.shm);