Make Server a toplevel struct
This commit is contained in:
parent
ce05dddea3
commit
5dbff2c018
@ -2,7 +2,7 @@ const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Decoration = @import("decoration.zig").Decoration;
|
||||
const Server = @import("server.zig").Server;
|
||||
const Server = @import("server.zig");
|
||||
|
||||
pub const DecorationManager = struct {
|
||||
const Self = @This();
|
||||
|
@ -3,7 +3,7 @@ const c = @import("c.zig");
|
||||
|
||||
const Log = @import("log.zig").Log;
|
||||
const Seat = @import("seat.zig").Seat;
|
||||
const Server = @import("server.zig").Server;
|
||||
const Server = @import("server.zig");
|
||||
|
||||
pub const InputManager = struct {
|
||||
const Self = @This();
|
||||
|
@ -2,7 +2,7 @@ const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const Log = @import("log.zig").Log;
|
||||
|
||||
const Server = @import("server.zig").Server;
|
||||
const Server = @import("server.zig");
|
||||
|
||||
pub fn main() !void {
|
||||
Log.init(Log.Debug);
|
||||
|
@ -4,7 +4,7 @@ const c = @import("c.zig");
|
||||
const Box = @import("box.zig");
|
||||
const LayerSurface = @import("layer_surface.zig").LayerSurface;
|
||||
const Output = @import("output.zig").Output;
|
||||
const Server = @import("server.zig").Server;
|
||||
const Server = @import("server.zig");
|
||||
const View = @import("view.zig").View;
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
||||
|
@ -5,7 +5,7 @@ const util = @import("util.zig");
|
||||
const Box = @import("box.zig").Box;
|
||||
const Log = @import("log.zig").Log;
|
||||
const Output = @import("output.zig").Output;
|
||||
const Server = @import("server.zig").Server;
|
||||
const Server = @import("server.zig");
|
||||
const Seat = @import("seat.zig").Seat;
|
||||
const View = @import("view.zig").View;
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
@ -1,4 +1,7 @@
|
||||
const Self = @This();
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Config = @import("config.zig").Config;
|
||||
@ -10,9 +13,6 @@ const Root = @import("root.zig").Root;
|
||||
const View = @import("view.zig").View;
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
||||
pub const Server = struct {
|
||||
const Self = @This();
|
||||
|
||||
allocator: *std.mem.Allocator,
|
||||
|
||||
wl_display: *c.wl_display,
|
||||
@ -202,4 +202,3 @@ pub const Server = struct {
|
||||
const output = @ptrCast(*Output, @alignCast(@alignOf(*Output), wlr_layer_surface.output.*.data));
|
||||
output.addLayerSurface(wlr_layer_surface) catch unreachable;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user