Make Cursor a toplevel struct
This commit is contained in:
		@ -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;
 | 
			
		||||
}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@ -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");
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user