diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-07-09 22:31:01 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-07-09 22:31:01 +0200 |
| commit | 8120829e5ca0bdd055b7437d43e9aa9285082d2b (patch) | |
| tree | 9ee960ca9d20d235d8faeab193bf379b0c7d43d6 | |
| parent | cbf645d468399456eee681d592066fb4afa55169 (diff) | |
| download | river-8120829e5ca0bdd055b7437d43e9aa9285082d2b.tar.gz river-8120829e5ca0bdd055b7437d43e9aa9285082d2b.tar.xz | |
xwayland: set seat
This makes e.g. the clipboard work.
| -rw-r--r-- | river/InputManager.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/river/InputManager.zig b/river/InputManager.zig index 80fd9e8..1175b5d 100644 --- a/river/InputManager.zig +++ b/river/InputManager.zig @@ -17,6 +17,7 @@ const Self = @This(); +const build_options = @import("build_options"); const std = @import("std"); const c = @import("c.zig"); @@ -55,6 +56,8 @@ pub fn init(self: *Self, server: *Server) !void { self.default_seat = &seat_node.data; 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; // Set up all listeners |
