Make float_filter a slice list

This commit is contained in:
Leon Henrik Plickat 2020-07-16 18:14:00 +02:00 committed by Isaac Freund
parent 0ebb5ccc17
commit 76da7e2b0d

View file

@ -50,7 +50,7 @@ mode_to_id: std.StringHashMap(usize),
modes: std.ArrayList(std.ArrayList(Mapping)),
/// List of app_ids which will be started floating
float_filter: std.ArrayList([*:0]const u8),
float_filter: std.ArrayList([]const u8),
/// List of app_ids which are allowed to use client side decorations
csd_filter: std.ArrayList([]const u8),
@ -73,7 +73,7 @@ pub fn init(self: *Self) !void {
errdefer self.modes.deinit();
try self.modes.append(std.ArrayList(Mapping).init(util.gpa));
self.float_filter = std.ArrayList([*:0]const u8).init(util.gpa);
self.float_filter = std.ArrayList([]const u8).init(util.gpa);
errdefer self.float_filter.deinit();
self.csd_filter = std.ArrayList([]const u8).init(util.gpa);