From 4a098e27f99a5299201d59234cf8d0165f13549c Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 22 Sep 2020 20:08:10 +0000 Subject: [PATCH] Don't init data_control if it's not supported by compositor --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 17aa47f..03cdd2e 100644 --- a/src/main.c +++ b/src/main.c @@ -957,8 +957,9 @@ int main(int argc, char* argv[]) goto capture_failure; } - data_control_init(&self.data_control, self.display, self.nvnc, - self.selected_seat->wl_seat); + if (self.data_control.manager) + data_control_init(&self.data_control, self.display, self.nvnc, + self.selected_seat->wl_seat); pixman_region_init(&self.current_damage);