From ec896d27b7211d7460379da5a3a564df1691507e Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 4 Mar 2025 11:49:28 -0600 Subject: [PATCH] ui: force redraw on focus_in This fixes how we handle the markread_on_focus configuration value --- src/app.zig | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app.zig b/src/app.zig index 8559a9d..9bb247d 100644 --- a/src/app.zig +++ b/src/app.zig @@ -251,16 +251,8 @@ pub const App = struct { .focus_out => self.has_focus = false, .focus_in => { - if (self.selectedBuffer()) |buffer| { - // If we have a selected channel, we reset the last_read_indicator state when - // gaining focus. This means that any messages received - switch (buffer) { - .client => {}, - .channel => |channel| channel.last_read_indicator = channel.last_read, - } - } - self.has_focus = true; + ctx.redraw = true; }, else => {}, -- 2.51.2