Make Server a toplevel struct

This commit is contained in:
Isaac Freund 2020-05-02 16:20:32 +02:00
parent ce05dddea3
commit 5dbff2c018
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
6 changed files with 167 additions and 168 deletions

View file

@ -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();

View file

@ -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();

View file

@ -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);

View file

@ -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;

View file

@ -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;

View file

@ -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;
}
};