server: support wlr-gamma-control

This commit is contained in:
Isaac Freund 2020-09-30 12:59:00 +02:00
parent 2b77be8c87
commit 0bd8274bd4
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 2 additions and 0 deletions

View file

@ -129,6 +129,7 @@ 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 return error.OutOfMemory; _ = c.wlr_data_device_manager_create(self.wl_display) orelse return error.OutOfMemory;
_ = c.wlr_data_control_manager_v1_create(self.wl_display) orelse return error.OutOfMemory; _ = c.wlr_data_control_manager_v1_create(self.wl_display) orelse return error.OutOfMemory;
_ = c.wlr_gamma_control_manager_v1_create(self.wl_display) orelse return error.OutOfMemory;
_ = c.wlr_screencopy_manager_v1_create(self.wl_display) orelse return error.OutOfMemory; _ = c.wlr_screencopy_manager_v1_create(self.wl_display) orelse return error.OutOfMemory;
_ = 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
return error.OutOfMemory; return error.OutOfMemory;

View file

@ -34,6 +34,7 @@ pub usingnamespace @cImport({
@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_control_v1.h");
@cInclude("wlr/types/wlr_data_device.h"); @cInclude("wlr/types/wlr_data_device.h");
@cInclude("wlr/types/wlr_gamma_control_v1.h");
@cInclude("wlr/types/wlr_idle.h"); @cInclude("wlr/types/wlr_idle.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");