aboutsummaryrefslogtreecommitdiff
path: root/src/view.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-12 22:19:48 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-12 22:19:48 +0200
commit0f52f664f22c81e3971cfbf62d0f2f6da90c98f1 (patch)
treec17fae327f85713197803517be79470daba2da3e /src/view.zig
parentd92c7a5a7125602951849800b0054681e3ea6631 (diff)
downloadriver-0f52f664f22c81e3971cfbf62d0f2f6da90c98f1.tar.gz
river-0f52f664f22c81e3971cfbf62d0f2f6da90c98f1.tar.xz
Introduce InputManager for eventual multi-seat
Diffstat (limited to 'src/view.zig')
-rw-r--r--src/view.zig3
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) {