Don't init data_control if it's not supported by compositor
parent
30295bb715
commit
4a098e27f9
|
@ -957,8 +957,9 @@ int main(int argc, char* argv[])
|
||||||
goto capture_failure;
|
goto capture_failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
data_control_init(&self.data_control, self.display, self.nvnc,
|
if (self.data_control.manager)
|
||||||
self.selected_seat->wl_seat);
|
data_control_init(&self.data_control, self.display, self.nvnc,
|
||||||
|
self.selected_seat->wl_seat);
|
||||||
|
|
||||||
pixman_region_init(&self.current_damage);
|
pixman_region_init(&self.current_damage);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue