Make LayerSurface a toplevel struct
This commit is contained in:
		@ -1,7 +1,7 @@
 | 
			
		||||
const std = @import("std");
 | 
			
		||||
const c = @import("c.zig");
 | 
			
		||||
 | 
			
		||||
const LayerSurface = @import("layer_surface.zig").LayerSurface;
 | 
			
		||||
const LayerSurface = @import("layer_surface.zig");
 | 
			
		||||
const Log = @import("log.zig").Log;
 | 
			
		||||
const Output = @import("output.zig");
 | 
			
		||||
const Seat = @import("seat.zig");
 | 
			
		||||
 | 
			
		||||
@ -1,13 +1,13 @@
 | 
			
		||||
const Self = @This();
 | 
			
		||||
 | 
			
		||||
const std = @import("std");
 | 
			
		||||
 | 
			
		||||
const c = @import("c.zig");
 | 
			
		||||
 | 
			
		||||
const Box = @import("box.zig");
 | 
			
		||||
const Log = @import("log.zig").Log;
 | 
			
		||||
const Output = @import("output.zig");
 | 
			
		||||
 | 
			
		||||
pub const LayerSurface = struct {
 | 
			
		||||
    const Self = @This();
 | 
			
		||||
 | 
			
		||||
output: *Output,
 | 
			
		||||
wlr_layer_surface: *c.wlr_layer_surface_v1,
 | 
			
		||||
 | 
			
		||||
@ -170,4 +170,3 @@ pub const LayerSurface = struct {
 | 
			
		||||
    // TODO: handle popups
 | 
			
		||||
    unreachable;
 | 
			
		||||
}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ const c = @import("c.zig");
 | 
			
		||||
const render = @import("render.zig");
 | 
			
		||||
 | 
			
		||||
const Box = @import("box.zig");
 | 
			
		||||
const LayerSurface = @import("layer_surface.zig").LayerSurface;
 | 
			
		||||
const LayerSurface = @import("layer_surface.zig");
 | 
			
		||||
const Log = @import("log.zig").Log;
 | 
			
		||||
const Root = @import("root.zig").Root;
 | 
			
		||||
const View = @import("view.zig").View;
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@ const std = @import("std");
 | 
			
		||||
const c = @import("c.zig");
 | 
			
		||||
 | 
			
		||||
const Box = @import("box.zig");
 | 
			
		||||
const LayerSurface = @import("layer_surface.zig").LayerSurface;
 | 
			
		||||
const LayerSurface = @import("layer_surface.zig");
 | 
			
		||||
const Output = @import("output.zig");
 | 
			
		||||
const Server = @import("server.zig");
 | 
			
		||||
const View = @import("view.zig").View;
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ const std = @import("std");
 | 
			
		||||
const Cursor = @import("cursor.zig").Cursor;
 | 
			
		||||
const InputManager = @import("input_manager.zig");
 | 
			
		||||
const Keyboard = @import("keyboard.zig").Keyboard;
 | 
			
		||||
const LayerSurface = @import("layer_surface.zig").LayerSurface;
 | 
			
		||||
const LayerSurface = @import("layer_surface.zig");
 | 
			
		||||
const Output = @import("output.zig");
 | 
			
		||||
const View = @import("view.zig").View;
 | 
			
		||||
const ViewStack = @import("view_stack.zig").ViewStack;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user