fix(ui): handle ai window scrolling in titlebar
All checks were successful
CI Code / Check spelling (pull_request) Successful in 17s
CI Code / Check coding style (pull_request) Successful in 30s
CI Code / Code Coverage (pull_request) Successful in 2m45s
CI Code / Linux (debian) (pull_request) Successful in 4m37s
CI Code / Linux (ubuntu) (pull_request) Successful in 4m52s
CI Code / Linux (arch) (pull_request) Successful in 5m40s
All checks were successful
CI Code / Check spelling (pull_request) Successful in 17s
CI Code / Check coding style (pull_request) Successful in 30s
CI Code / Code Coverage (pull_request) Successful in 2m45s
CI Code / Linux (debian) (pull_request) Successful in 4m37s
CI Code / Linux (ubuntu) (pull_request) Successful in 4m52s
CI Code / Linux (arch) (pull_request) Successful in 5m40s
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.
This commit is contained in:
@@ -46,6 +46,7 @@
|
|||||||
#include "ui/ui.h"
|
#include "ui/ui.h"
|
||||||
#include "ui/titlebar.h"
|
#include "ui/titlebar.h"
|
||||||
#include "ui/inputwin.h"
|
#include "ui/inputwin.h"
|
||||||
|
#include "ui/win_types.h"
|
||||||
#include "ui/window_list.h"
|
#include "ui/window_list.h"
|
||||||
#include "ui/window.h"
|
#include "ui/window.h"
|
||||||
#include "ui/screen.h"
|
#include "ui/screen.h"
|
||||||
@@ -252,6 +253,10 @@ _title_bar_draw(void)
|
|||||||
_show_muc_privacy(mucwin);
|
_show_muc_privacy(mucwin);
|
||||||
_show_attention(current, mucwin->has_attention);
|
_show_attention(current, mucwin->has_attention);
|
||||||
_show_scrolled(current);
|
_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();
|
_show_self_presence();
|
||||||
|
|||||||
Reference in New Issue
Block a user