mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 13:26:21 +00:00
Display MUC name in titlebar
This commit is contained in:
@@ -190,7 +190,14 @@ _title_bar_draw(void)
|
|||||||
waddch(win, ' ');
|
waddch(win, ' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
char *title = win_get_title(current);
|
char *title;
|
||||||
|
if (current && current->type == WIN_MUC) {
|
||||||
|
ProfMucWin *mucwin = (ProfMucWin*) current;
|
||||||
|
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
|
||||||
|
title = strdup(mucwin->room_name);
|
||||||
|
} else {
|
||||||
|
title = win_get_title(current);
|
||||||
|
}
|
||||||
mvwprintw(win, 0, 0, " %s", title);
|
mvwprintw(win, 0, 0, " %s", title);
|
||||||
free(title);
|
free(title);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user