Switch from page_allocator to GeneralPurposeAllocator

This commit is contained in:
Erwin Boskma 2024-05-15 13:21:05 +02:00
parent 79ae7a5dc4
commit d1786a33a3
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

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