diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-12 22:19:48 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-12 22:19:48 +0200 |
| commit | 0f52f664f22c81e3971cfbf62d0f2f6da90c98f1 (patch) | |
| tree | c17fae327f85713197803517be79470daba2da3e /src/view.zig | |
| parent | d92c7a5a7125602951849800b0054681e3ea6631 (diff) | |
| download | river-0f52f664f22c81e3971cfbf62d0f2f6da90c98f1.tar.gz river-0f52f664f22c81e3971cfbf62d0f2f6da90c98f1.tar.xz | |
Introduce InputManager for eventual multi-seat
Diffstat (limited to 'src/view.zig')
| -rw-r--r-- | src/view.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view.zig b/src/view.zig index 9ff03ec..824f98a 100644 --- a/src/view.zig +++ b/src/view.zig @@ -182,7 +182,8 @@ pub const View = struct { fn focus(self: *Self, surface: *c.wlr_surface) void { const root = self.output.root; - const wlr_seat = root.server.seat.wlr_seat; + // TODO: remove this hack + const wlr_seat = root.server.input_manager.seats.first.?.data.wlr_seat; const prev_surface = wlr_seat.keyboard_state.focused_surface; if (prev_surface == surface) { |
