diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-19 13:25:16 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-19 13:25:16 +0200 |
| commit | 0904dc53467d9e94cdce050c493e9377da8ebfcc (patch) | |
| tree | 393073533252d7c3ef92332ecb87aa6d9835ff41 /src/Server.zig | |
| parent | 82d74d938c0e54bd62dd4d525b312a0cd048608a (diff) | |
| download | river-0904dc53467d9e94cdce050c493e9377da8ebfcc.tar.gz river-0904dc53467d9e94cdce050c493e9377da8ebfcc.tar.xz | |
Create WindowManagement struct
Diffstat (limited to 'src/Server.zig')
| -rw-r--r-- | src/Server.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Server.zig b/src/Server.zig index 69ec78e..622b76f 100644 --- a/src/Server.zig +++ b/src/Server.zig @@ -31,6 +31,7 @@ const Output = @import("Output.zig"); const Root = @import("Root.zig"); const View = @import("View.zig"); const ViewStack = @import("view_stack.zig").ViewStack; +const WindowManagement = @import("WindowManagement.zig"); const XwaylandUnmanaged = @import("XwaylandUnmanaged.zig"); allocator: *std.mem.Allocator, @@ -55,6 +56,7 @@ decoration_manager: DecorationManager, input_manager: InputManager, root: Root, config: Config, +window_management: WindowManagement, pub fn init(self: *Self, allocator: *std.mem.Allocator) !void { self.allocator = allocator; @@ -120,6 +122,7 @@ pub fn init(self: *Self, allocator: *std.mem.Allocator) !void { try self.root.init(self); // Must be called after root is initialized try self.input_manager.init(self); + try self.window_management.init(self); // These all free themselves when the wl_display is destroyed _ = c.wlr_data_device_manager_create(self.wl_display) orelse |
