data-control: implement protocol
This commit is contained in:
parent
8223c8c08e
commit
a7c422dad7
@ -127,6 +127,8 @@ pub fn init(self: *Self) !void {
|
|||||||
// These all free themselves when the wl_display is destroyed
|
// These all free themselves when the wl_display is destroyed
|
||||||
_ = c.wlr_data_device_manager_create(self.wl_display) orelse
|
_ = c.wlr_data_device_manager_create(self.wl_display) orelse
|
||||||
return error.CantCreateWlrDataDeviceManager;
|
return error.CantCreateWlrDataDeviceManager;
|
||||||
|
_ = c.wlr_data_control_manager_v1_create(self.wl_display) orelse
|
||||||
|
return error.CantCreateWlrDataControlManager;
|
||||||
_ = c.wlr_screencopy_manager_v1_create(self.wl_display) orelse
|
_ = c.wlr_screencopy_manager_v1_create(self.wl_display) orelse
|
||||||
return error.CantCreateWlrScreencopyManager;
|
return error.CantCreateWlrScreencopyManager;
|
||||||
_ = c.wlr_xdg_output_manager_v1_create(self.wl_display, self.root.wlr_output_layout) orelse
|
_ = c.wlr_xdg_output_manager_v1_create(self.wl_display, self.root.wlr_output_layout) orelse
|
||||||
|
@ -27,6 +27,7 @@ pub usingnamespace @cImport({
|
|||||||
@cInclude("wlr/types/wlr_buffer.h");
|
@cInclude("wlr/types/wlr_buffer.h");
|
||||||
@cInclude("wlr/types/wlr_compositor.h");
|
@cInclude("wlr/types/wlr_compositor.h");
|
||||||
@cInclude("wlr/types/wlr_cursor.h");
|
@cInclude("wlr/types/wlr_cursor.h");
|
||||||
|
@cInclude("wlr/types/wlr_data_control_v1.h");
|
||||||
@cInclude("wlr/types/wlr_data_device.h");
|
@cInclude("wlr/types/wlr_data_device.h");
|
||||||
@cInclude("wlr/types/wlr_input_device.h");
|
@cInclude("wlr/types/wlr_input_device.h");
|
||||||
@cInclude("wlr/types/wlr_input_inhibitor.h");
|
@cInclude("wlr/types/wlr_input_inhibitor.h");
|
||||||
|
Loading…
Reference in New Issue
Block a user