From f7881ea573ca2dd0ad2f65d70c1398076c7a41e3 Mon Sep 17 00:00:00 2001 From: dudemanguy Date: Mon, 21 Oct 2019 08:30:55 -0500 Subject: wayland: don't get data device if wl_seat is null --- video/out/wayland_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 81ef768b61..09f626a216 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1085,10 +1085,10 @@ int vo_wayland_init(struct vo *vo) if (create_xdg_surface(wl)) return false; - if (wl->dnd_devman) { + if (wl->dnd_devman && wl->seat) { wl->dnd_ddev = wl_data_device_manager_get_data_device(wl->dnd_devman, wl->seat); wl_data_device_add_listener(wl->dnd_ddev, &data_device_listener, wl); - } else { + } else if (!wl->dnd_devman) { MP_VERBOSE(wl, "Compositor doesn't support the %s (ver. 3) protocol!\n", wl_data_device_manager_interface.name); } -- cgit v1.2.3