Make Cursor a toplevel struct
This commit is contained in:
parent
a73343c92f
commit
97d395dbfc
2 changed files with 334 additions and 335 deletions
|
@ -1,4 +1,7 @@
|
||||||
|
const Self = @This();
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
const c = @import("c.zig");
|
const c = @import("c.zig");
|
||||||
|
|
||||||
const LayerSurface = @import("layer_surface.zig");
|
const LayerSurface = @import("layer_surface.zig");
|
||||||
|
@ -14,9 +17,6 @@ const CursorMode = enum {
|
||||||
Resize,
|
Resize,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const Cursor = struct {
|
|
||||||
const Self = @This();
|
|
||||||
|
|
||||||
seat: *Seat,
|
seat: *Seat,
|
||||||
wlr_cursor: *c.wlr_cursor,
|
wlr_cursor: *c.wlr_cursor,
|
||||||
wlr_xcursor_manager: *c.wlr_xcursor_manager,
|
wlr_xcursor_manager: *c.wlr_xcursor_manager,
|
||||||
|
@ -384,4 +384,3 @@ pub const Cursor = struct {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ const Self = @This();
|
||||||
const c = @import("c.zig");
|
const c = @import("c.zig");
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
const Cursor = @import("cursor.zig").Cursor;
|
const Cursor = @import("cursor.zig");
|
||||||
const InputManager = @import("input_manager.zig");
|
const InputManager = @import("input_manager.zig");
|
||||||
const Keyboard = @import("keyboard.zig").Keyboard;
|
const Keyboard = @import("keyboard.zig").Keyboard;
|
||||||
const LayerSurface = @import("layer_surface.zig");
|
const LayerSurface = @import("layer_surface.zig");
|
||||||
|
|
Loading…
Reference in a new issue