1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 11:56:44 +02:00

correctly reposition call infobox on resize

This commit is contained in:
Jfreegman
2014-07-01 11:17:52 -04:00
parent 3e22c9b829
commit 893cfaa543
3 changed files with 14 additions and 5 deletions

View File

@ -358,6 +358,15 @@ void on_window_resize(void)
w->stb->topline = subwin(w->window, 2, x2, 0, 0);
}
#ifdef _SUPPORT_AUDIO
if (ctx->infobox.active) {
delwin(ctx->infobox.win);
ctx->infobox.win = newwin(INFOBOX_HEIGHT, INFOBOX_WIDTH + 1, 1, x2 - INFOBOX_WIDTH);
}
#endif /* #ifdef _SUPPORT_AUDIO */
scrollok(ctx->history, 0);
}
}