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