about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-09-02 15:50:13 -0400
committerJune McEnroe <june@causal.agency>2020-09-02 15:50:13 -0400
commit6fe5368ec72986174cc09bc704a4979d642c4267 (patch)
tree3535cb5bf1b6b463328b7c8f70c3c4bca7d1ce9c
parentDon't consider the alignment tab a wrapping point (diff)
downloadcatgirl-6fe5368ec72986174cc09bc704a4979d642c4267.tar.gz
catgirl-6fe5368ec72986174cc09bc704a4979d642c4267.zip
Only call windowUpdate when the shown window needs updating
Diffstat (limited to '')
-rw-r--r--ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index a898993..9e86000 100644
--- a/ui.c
+++ b/ui.c
@@ -477,7 +477,7 @@ static void windowScroll(struct Window *window, int n) {
 	}
 	if (window->scroll < 0) window->scroll = 0;
 	unmark(window);
-	windowUpdate();
+	if (window == windows.ptrs[windows.show]) windowUpdate();
 }
 
 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;
 	if (window->scroll) windowScroll(window, lines);
-	windowUpdate();
+	if (window == windows.ptrs[windows.show]) windowUpdate();
 
 	if (window->mark && heat > Warm) {
 		beep();
n the photo I took, and I'm just a photographer. It's visual art. 2024-09-23Automatically select the last used lens for a bodyJune McEnroe 2024-09-19Add photos from September 5June McEnroe Had to prefix the folder number onto these file names manually because they must have come out of a different scanner or something. 2024-09-15Add some more film stocks to the listJune McEnroe 2024-09-13Add photos from September 2June McEnroe 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe This seems easier to visually scan. The only other thing I'd like is a nicer date rendering but JavaScript is useless for that. 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe