Make Cursor a toplevel struct

This commit is contained in:
Isaac Freund 2020-05-02 16:47:10 +02:00
parent a73343c92f
commit 97d395dbfc
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 334 additions and 335 deletions

View file

@ -1,4 +1,7 @@
const Self = @This();
const std = @import("std");
const c = @import("c.zig");
const LayerSurface = @import("layer_surface.zig");
@ -14,9 +17,6 @@ const CursorMode = enum {
Resize,
};
pub const Cursor = struct {
const Self = @This();
seat: *Seat,
wlr_cursor: *c.wlr_cursor,
wlr_xcursor_manager: *c.wlr_xcursor_manager,
@ -384,4 +384,3 @@ pub const Cursor = struct {
}
return null;
}
};

View file

@ -3,7 +3,7 @@ const Self = @This();
const c = @import("c.zig");
const std = @import("std");
const Cursor = @import("cursor.zig").Cursor;
const Cursor = @import("cursor.zig");
const InputManager = @import("input_manager.zig");
const Keyboard = @import("keyboard.zig").Keyboard;
const LayerSurface = @import("layer_surface.zig");