xwayland: set seat

This makes e.g. the clipboard work.
This commit is contained in:
Isaac Freund 2020-07-09 22:31:01 +02:00
parent cbf645d468
commit 8120829e5c
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -17,6 +17,7 @@
const Self = @This(); const Self = @This();
const build_options = @import("build_options");
const std = @import("std"); const std = @import("std");
const c = @import("c.zig"); const c = @import("c.zig");
@ -55,6 +56,8 @@ pub fn init(self: *Self, server: *Server) !void {
self.default_seat = &seat_node.data; self.default_seat = &seat_node.data;
self.seats.prepend(seat_node); self.seats.prepend(seat_node);
if (build_options.xwayland) c.wlr_xwayland_set_seat(server.wlr_xwayland, self.default_seat.wlr_seat);
self.exclusive_client = null; self.exclusive_client = null;
// Set up all listeners // Set up all listeners