Cursor: remove minor outdated workaround

Since Zig 0.9 @tagName() and other similar builtins return 0 terminated
data.
This commit is contained in:
Isaac Freund 2022-01-05 18:13:08 +01:00
parent 1c515759b4
commit a340a605a4
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -233,11 +233,7 @@ fn setImage(self: *Self, image: Image) void {
if (image == self.image) return;
self.image = image;
// TODO: this is a workaround until updating to zig 0.9.0
const image_z = util.gpa.dupeZ(u8, @tagName(image)) catch return;
defer util.gpa.free(image_z);
self.xcursor_manager.setCursorImage(image_z, self.wlr_cursor);
self.xcursor_manager.setCursorImage(@tagName(image), self.wlr_cursor);
}
fn clearFocus(self: *Self) void {