This commit is contained in:
Harrison DiAmbrosio 2025-10-23 23:30:54 -04:00
commit 17cdbae175
12 changed files with 341 additions and 10 deletions

View file

@ -11,6 +11,7 @@ const Keyboard = @import("keyboard.zig");
const Output = @import("output.zig");
const View = @import("view.zig");
const Utils = @import("utils.zig");
const Keymap = @import("keymap.zig");
const gpa = std.heap.c_allocator;
const server = &@import("main.zig").server;
@ -34,6 +35,7 @@ root: Root,
seat: Seat,
cursor: Cursor,
keyboard: Keyboard,
keymaps: std.AutoHashMap(u64, Keymap),
// Backend listeners
new_input: wl.Listener(*wlr.InputDevice) = .init(handleNewInput),
@ -89,6 +91,7 @@ pub fn init(self: *Server) void {
.seat = undefined,
.cursor = undefined,
.keyboard = undefined,
.keymaps = .init(gpa),
};
self.renderer.initServer(wl_server) catch {