diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-09-30 12:59:00 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-09-30 12:59:00 +0200 |
| commit | 0bd8274bd4c1a5c791c3a6bbeff8c39414839eb5 (patch) | |
| tree | ae185ade2c50e3f7f42723127751d1fa7b1ca36a | |
| parent | 2b77be8c87bb08e17e70d2bd019a003ac5503a35 (diff) | |
| download | river-0bd8274bd4c1a5c791c3a6bbeff8c39414839eb5.tar.gz river-0bd8274bd4c1a5c791c3a6bbeff8c39414839eb5.tar.xz | |
server: support wlr-gamma-control
| -rw-r--r-- | river/Server.zig | 1 | ||||
| -rw-r--r-- | river/c.zig | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/river/Server.zig b/river/Server.zig index fd28ce7..fd8aeff 100644 --- a/river/Server.zig +++ b/river/Server.zig @@ -129,6 +129,7 @@ pub fn init(self: *Self) !void { // 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_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_xdg_output_manager_v1_create(self.wl_display, self.root.wlr_output_layout) orelse return error.OutOfMemory; diff --git a/river/c.zig b/river/c.zig index 113df91..ead36a3 100644 --- a/river/c.zig +++ b/river/c.zig @@ -34,6 +34,7 @@ pub usingnamespace @cImport({ @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_gamma_control_v1.h"); @cInclude("wlr/types/wlr_idle.h"); @cInclude("wlr/types/wlr_input_device.h"); @cInclude("wlr/types/wlr_input_inhibitor.h"); |
