From 271accc6bc4d7f3da0d2f5f667f077419a303790 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 14 Mar 2025 08:41:57 -0500 Subject: [PATCH] fix: ignore markread_on_focus config for now --- src/app.zig | 4 ++++ src/irc.zig | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app.zig b/src/app.zig index 5554301..ab8deaf 100644 --- a/src/app.zig +++ b/src/app.zig @@ -286,6 +286,10 @@ pub const App = struct { .focus_out => self.has_focus = false, .focus_in => { + if (self.config.markread_on_focus) { + // TODO: implement this + + } self.has_focus = true; ctx.redraw = true; }, diff --git a/src/irc.zig b/src/irc.zig index 2d8b22f..ee24fe1 100644 --- a/src/irc.zig +++ b/src/irc.zig @@ -1295,8 +1295,7 @@ pub const Channel = struct { self.scroll_to_last_read = false; } - if (self.client.app.config.markread_on_focus and - self.has_unread and + if (self.has_unread and self.client.app.has_focus and self.messageViewIsAtBottom()) { -- 2.51.2