fix: don't clear_hover_focus in refresh_hover

This causes an endless render loop because the hover status
ping pongs. This was probably originally added to avoid dangling
widget pointers. We handle that correctly now elsewhere with
is_live_widget_ptr.
This commit is contained in:
CJ van den Berg 2026-01-15 17:23:44 +01:00
parent 8cfab31104
commit 120a9f0bf5
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -879,7 +879,6 @@ fn send_hover_msg(widget: *const Widget, hover: bool) tp.result {
pub fn refresh_hover(src: std.builtin.SourceLocation) void { pub fn refresh_hover(src: std.builtin.SourceLocation) void {
const self = current(); const self = current();
tp.trace(tp.channel.debug, .{ "tui", "refresh_hover", if (self.hover_focus) |h| @intFromPtr(h) else 0, src.fn_name, src.file, src.line }); tp.trace(tp.channel.debug, .{ "tui", "refresh_hover", if (self.hover_focus) |h| @intFromPtr(h) else 0, src.fn_name, src.file, src.line });
self.clear_hover_focus(@src()) catch return;
_ = self.update_hover(self.last_hover_y, self.last_hover_x) catch {}; _ = self.update_hover(self.last_hover_y, self.last_hover_x) catch {};
} }