shithub: neindaw

Download patch

ref: a6875be771d0b79f59abe6529231d294094b4a23
parent: 9cbbc5279cbc793497f4d03e017c3ab2f4f7e4c6
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Aug 24 08:16:09 EDT 2021

cfg: update for microui change

--- a/cfg/cfg.c
+++ b/cfg/cfg.c
@@ -359,7 +359,7 @@
 		{ nil, nil, CHANEND },
 	};
 	char *curdir[] = {".", nil};
-	int oldbuttons, b, nkey, gotevent, i;
+	int oldbuttons, b, nkey, gotevent, i, force;
 	char text[5];
 
 	ARGBEGIN{
@@ -398,10 +398,12 @@
 	winopt &= ~MU_OPT_AUTOSIZE_H;
 
 	oldbuttons = 0;
+	force = 1;
 	for (;;) {
 		process_frame();
-		if (mu_render())
+		if (mu_render(force))
 			flushimage(display, 1);
+		force = 0;
 
 		gotevent = 1;
 		switch (alt(a)) {
@@ -427,6 +429,7 @@
 
 		case 1: /* resize */
 			getwindow(display, Refnone);
+			force = 1;
 			break;
 
 		case 2: /* keyboard */