an experimental irc client

ui: force redraw on focus_in

This fixes how we handle the markread_on_focus configuration value

rockorager.dev ec896d27 8b283a92

verified
+1 -9
+1 -9
src/app.zig
··· 251 251 .focus_out => self.has_focus = false, 252 252 253 253 .focus_in => { 254 - if (self.selectedBuffer()) |buffer| { 255 - // If we have a selected channel, we reset the last_read_indicator state when 256 - // gaining focus. This means that any messages received 257 - switch (buffer) { 258 - .client => {}, 259 - .channel => |channel| channel.last_read_indicator = channel.last_read, 260 - } 261 - } 262 - 263 254 self.has_focus = true; 255 + ctx.redraw = true; 264 256 }, 265 257 266 258 else => {},