Fix a de-init that I missed in 9fef3f70
This commit is contained in:
parent
0bb891a18b
commit
8b5681a26f
2 changed files with 3 additions and 7 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
These are in rough order of my priority, though no promises I do them in this order.
|
These are in rough order of my priority, though no promises I do them in this order.
|
||||||
|
|
||||||
|
- [ ] Check pointer position and only warp if not on focused window already
|
||||||
|
- [ ] Change focus direction when closing window
|
||||||
- [ ] Use set_xcursor_theme request
|
- [ ] Use set_xcursor_theme request
|
||||||
- [ ] Add focused window title to bar
|
- [ ] Add focused window title to bar
|
||||||
- [ ] Support overriding config location
|
- [ ] Support overriding config location
|
||||||
|
|
|
||||||
|
|
@ -92,13 +92,7 @@ pub fn create() !*Config {
|
||||||
log.err("Error while loading config: {s}. Continuing with default config", .{@errorName(err)});
|
log.err("Error while loading config: {s}. Continuing with default config", .{@errorName(err)});
|
||||||
// Free any partially-loaded state and reset to defaults
|
// Free any partially-loaded state and reset to defaults
|
||||||
for (config.keybinds.values()) |cmd| {
|
for (config.keybinds.values()) |cmd| {
|
||||||
switch (cmd) {
|
cmd.deinit();
|
||||||
.spawn => |argv| {
|
|
||||||
for (argv) |arg| utils.gpa.free(arg);
|
|
||||||
utils.gpa.free(argv);
|
|
||||||
},
|
|
||||||
else => {},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
config.keybinds.clearAndFree(utils.gpa);
|
config.keybinds.clearAndFree(utils.gpa);
|
||||||
config.tag_binds.clearAndFree(utils.gpa);
|
config.tag_binds.clearAndFree(utils.gpa);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue