From 506794474aa59a642f26cb47f6ed9b627f8602bd Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Sat, 16 May 2026 12:24:36 +0000 Subject: [PATCH] fix(ui): handle ai window scrolling in titlebar Add missing scroll rendering for AI windows in the title bar draw function. This ensures AI windows display their scrolled state consistently with other non-chat window types. --- src/ui/titlebar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index bed87b4a..f5fddbee 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -46,6 +46,7 @@ #include "ui/ui.h" #include "ui/titlebar.h" #include "ui/inputwin.h" +#include "ui/win_types.h" #include "ui/window_list.h" #include "ui/window.h" #include "ui/screen.h" @@ -252,6 +253,10 @@ _title_bar_draw(void) _show_muc_privacy(mucwin); _show_attention(current, mucwin->has_attention); _show_scrolled(current); + } else if (current && current->type == WIN_AI) { + ProfAiWin* aiwin = (ProfAiWin*)current; + assert(aiwin->memcheck == PROFAIWIN_MEMCHECK); + _show_scrolled(current); } _show_self_presence();