xwayland: set seat
This makes e.g. the clipboard work.
This commit is contained in:
parent
cbf645d468
commit
8120829e5c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user