aboutsummaryrefslogtreecommitdiff
path: root/src/view.zig
diff options
context:
space:
mode:
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) {