diff --git a/src/main.zig b/src/main.zig index f3f191f..9d1edda 100644 --- a/src/main.zig +++ b/src/main.zig @@ -24,10 +24,13 @@ const ToplevelFullscreen = enum { Fullscreen, NotFullscreen }; pub fn main() anyerror!void { std.log.info("Vegetable Hamper v{}", .{version}); + var gpa = std.heap.GeneralPurposeAllocator(.{}){}; + const allocator = gpa.allocator(); + var context = Context{ .toplevel_mgr = null, .idle_inhibit_mgr = null, - .handles = std.AutoHashMap(*zwlr.ForeignToplevelHandleV1, ToplevelFullscreen).init(std.heap.page_allocator), + .handles = std.AutoHashMap(*zwlr.ForeignToplevelHandleV1, ToplevelFullscreen).init(allocator), .idle_inhibitor = null, .shm = null, .compositor = null,