Make DecorationManager a toplevel struct
This commit is contained in:
parent
5dbff2c018
commit
fb766fe09c
3 changed files with 29 additions and 30 deletions
|
@ -1,7 +1,7 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const c = @import("c.zig");
|
const c = @import("c.zig");
|
||||||
|
|
||||||
const DecorationManager = @import("decoration_manager.zig").DecorationManager;
|
const DecorationManager = @import("decoration_manager.zig");
|
||||||
|
|
||||||
// TODO: this needs to listen for destroy and free nodes from the deco list
|
// TODO: this needs to listen for destroy and free nodes from the deco list
|
||||||
pub const Decoration = struct {
|
pub const Decoration = struct {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
|
const Self = @This();
|
||||||
|
|
||||||
const std = @import("std");
|
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");
|
const Server = @import("server.zig");
|
||||||
|
|
||||||
pub const DecorationManager = struct {
|
|
||||||
const Self = @This();
|
|
||||||
|
|
||||||
server: *Server,
|
server: *Server,
|
||||||
|
|
||||||
wlr_xdg_decoration_manager: *c.wlr_xdg_decoration_manager_v1,
|
wlr_xdg_decoration_manager: *c.wlr_xdg_decoration_manager_v1,
|
||||||
|
@ -38,4 +38,3 @@ pub const DecorationManager = struct {
|
||||||
node.data.init(self, wlr_xdg_toplevel_decoration);
|
node.data.init(self, wlr_xdg_toplevel_decoration);
|
||||||
self.decorations.prepend(node);
|
self.decorations.prepend(node);
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ 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;
|
||||||
const DecorationManager = @import("decoration_manager.zig").DecorationManager;
|
const DecorationManager = @import("decoration_manager.zig");
|
||||||
const InputManager = @import("input_manager.zig").InputManager;
|
const InputManager = @import("input_manager.zig").InputManager;
|
||||||
const Log = @import("log.zig").Log;
|
const Log = @import("log.zig").Log;
|
||||||
const Output = @import("output.zig").Output;
|
const Output = @import("output.zig").Output;
|
||||||
|
|
Loading…
Reference in a new issue