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,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);