aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/terminal/c/mouse_event.zig
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/terminal/c/mouse_event.zig
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/terminal/c/mouse_event.zig')
-rw-r--r--vendor/libghostty-vt/src/terminal/c/mouse_event.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/libghostty-vt/src/terminal/c/mouse_event.zig b/vendor/libghostty-vt/src/terminal/c/mouse_event.zig
index b3c19dd3..b97b4661 100644
--- a/vendor/libghostty-vt/src/terminal/c/mouse_event.zig
+++ b/vendor/libghostty-vt/src/terminal/c/mouse_event.zig
@@ -51,7 +51,7 @@ pub fn free(event_: Event) callconv(lib.calling_conv) void {
pub fn set_action(event_: Event, action: Action) callconv(lib.calling_conv) void {
if (comptime std.debug.runtime_safety) {
- _ = std.meta.intToEnum(Action, @intFromEnum(action)) catch {
+ _ = std.enums.fromInt(Action, @intFromEnum(action)) orelse {
log.warn("set_action invalid action value={d}", .{@intFromEnum(action)});
return;
};
@@ -66,7 +66,7 @@ pub fn get_action(event_: Event) callconv(lib.calling_conv) Action {
pub fn set_button(event_: Event, button: Button) callconv(lib.calling_conv) void {
if (comptime std.debug.runtime_safety) {
- _ = std.meta.intToEnum(Button, @intFromEnum(button)) catch {
+ _ = std.enums.fromInt(Button, @intFromEnum(button)) orelse {
log.warn("set_button invalid button value={d}", .{@intFromEnum(button)});
return;
};