aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--river/Cursor.zig6
1 files changed, 1 insertions, 5 deletions
diff --git a/river/Cursor.zig b/river/Cursor.zig
index 2e53202..19b9762 100644
--- a/river/Cursor.zig
+++ b/river/Cursor.zig
@@ -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 {