Make Keyboard a toplevel struct

This commit is contained in:
Isaac Freund 2020-05-02 16:48:09 +02:00
parent 97d395dbfc
commit ed98e8fe1a
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 138 additions and 139 deletions

View file

@ -1,12 +1,12 @@
const Self = @This();
const std = @import("std");
const c = @import("c.zig");
const Log = @import("log.zig").Log;
const Seat = @import("seat.zig");
pub const Keyboard = struct {
const Self = @This();
seat: *Seat,
wlr_input_device: *c.wlr_input_device,
wlr_keyboard: *c.wlr_keyboard,
@ -161,4 +161,3 @@ pub const Keyboard = struct {
}
return false;
}
};

View file

@ -5,7 +5,7 @@ const std = @import("std");
const Cursor = @import("cursor.zig");
const InputManager = @import("input_manager.zig");
const Keyboard = @import("keyboard.zig").Keyboard;
const Keyboard = @import("keyboard.zig");
const LayerSurface = @import("layer_surface.zig");
const Output = @import("output.zig");
const View = @import("view.zig");