git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commitd71d38b3838869eda63a0f153cf95c5bc69649cc
parente9ed46ad0a
authorIsaac Freund <[email protected]>
date2020-11-03 16:10
server: drop gtk-primary-selection support

 river/Server.zig | 4 +---
 river/c.zig      | 1 -
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/river/Server.zig b/river/Server.zig
index 318e16f..3c876b1 100644
--- a/river/Server.zig
+++ b/river/Server.zig
@@ -128,7 +128,6 @@ pub fn init(self: *Self) !void {
 
     // Set up primary selection
     _ = c.wlr_primary_selection_v1_device_manager_create(self.wl_display);
-    _ = c.wlr_gtk_primary_selection_device_manager_create(self.wl_display);
 
     self.config = try Config.init();
     try self.decoration_manager.init(self);
@@ -304,7 +303,7 @@ fn handleOutputPowerManagementSetMode(listener: ?*c.wl_listener, data: ?*c_void)
     log.debug(
         .server,
         "{} dpms for output {}",
-        .{log_text, wlr_output.name},
+        .{ log_text, wlr_output.name },
     );
 
     c.wlr_output_enable(wlr_output, enable);
@@ -315,5 +314,4 @@ fn handleOutputPowerManagementSetMode(listener: ?*c.wl_listener, data: ?*c_void)
             .{wlr_output.name},
         );
     }
-
 }
diff --git a/river/c.zig b/river/c.zig
index 1a05c44..7670f58 100644
--- a/river/c.zig
+++ b/river/c.zig
@@ -38,7 +38,6 @@ pub usingnamespace @cImport({
     @cInclude("wlr/types/wlr_data_device.h");
     @cInclude("wlr/types/wlr_export_dmabuf_v1.h");
     @cInclude("wlr/types/wlr_gamma_control_v1.h");
-    @cInclude("wlr/types/wlr_gtk_primary_selection.h");
     @cInclude("wlr/types/wlr_idle.h");
     @cInclude("wlr/types/wlr_input_device.h");
     @cInclude("wlr/types/wlr_input_inhibitor.h");