Switch from page_allocator to GeneralPurposeAllocator
This commit is contained in:
parent
79ae7a5dc4
commit
d1786a33a3
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue