Don't init data_control if it's not supported by compositor

pull/69/head
Andri Yngvason 2020-09-22 20:08:10 +00:00
parent 30295bb715
commit 4a098e27f9
1 changed files with 3 additions and 2 deletions

View File

@ -957,6 +957,7 @@ int main(int argc, char* argv[])
goto capture_failure; goto capture_failure;
} }
if (self.data_control.manager)
data_control_init(&self.data_control, self.display, self.nvnc, data_control_init(&self.data_control, self.display, self.nvnc,
self.selected_seat->wl_seat); self.selected_seat->wl_seat);