Fix crash when wallpaper_image_path is missing
This makes the WM run fine even if wallpaper_image fails to load for any other reason. Right now, it's still just a black background. At some point, I plan to add the ability to also just set a color as a background but that's a fairly low priority.
This commit is contained in:
parent
e186a2d017
commit
00835cea08
4 changed files with 28 additions and 6 deletions
|
|
@ -20,6 +20,10 @@ focus_follows_pointer: bool = true,
|
|||
/// Should the pointer warp to the center of newly-focused windows
|
||||
pointer_warp_on_focus_change: bool = true,
|
||||
|
||||
// TODO: Implement a color when this is null
|
||||
/// Path to the wallpaper image
|
||||
wallpaper_image_path: []const u8 = "",
|
||||
|
||||
/// Tag bind entries parsed from config (tag_bind nodes in keybinds block)
|
||||
tag_binds: std.ArrayList(Keybind) = .{},
|
||||
keybinds: std.ArrayList(Keybind) = .{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue