Only call windowUpdate when the shown window needs updating
parent
1563eb7d56
commit
6fe5368ec7
4
ui.c
4
ui.c
|
@ -477,7 +477,7 @@ static void windowScroll(struct Window *window, int n) {
|
||||||
}
|
}
|
||||||
if (window->scroll < 0) window->scroll = 0;
|
if (window->scroll < 0) window->scroll = 0;
|
||||||
unmark(window);
|
unmark(window);
|
||||||
windowUpdate();
|
if (window == windows.ptrs[windows.show]) windowUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void windowScrollPage(struct Window *window, int n) {
|
static void windowScrollPage(struct Window *window, int n) {
|
||||||
|
@ -534,7 +534,7 @@ void uiWrite(uint id, enum Heat heat, const time_t *src, const char *str) {
|
||||||
}
|
}
|
||||||
window->unreadHard += lines;
|
window->unreadHard += lines;
|
||||||
if (window->scroll) windowScroll(window, lines);
|
if (window->scroll) windowScroll(window, lines);
|
||||||
windowUpdate();
|
if (window == windows.ptrs[windows.show]) windowUpdate();
|
||||||
|
|
||||||
if (window->mark && heat > Warm) {
|
if (window->mark && heat > Warm) {
|
||||||
beep();
|
beep();
|
||||||
|
|
Loading…
Reference in New Issue