mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 20:57:32 -04:00
merged
This commit is contained in:
commit
17cdbae175
12 changed files with 341 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue