shithub: zuke

Download patch

ref: 4a94fb2e08fb85bbb45af269ae1ba3faab273eaa
parent: 8ff5ef4f608e33716123ee8001ada0685609c5b9
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Feb 4 05:11:55 EST 2021

better fix for enter: set display into locking mode, as required

--- a/zuke.c
+++ b/zuke.c
@@ -961,11 +961,8 @@
 	int inc, i, a, cycle;
 
 	inc = (d == '/' || d == 'n') ? 1 : -1;
-	if(d == '/' || d == '?'){
-		lockdisplay(display);
+	if(d == '/' || d == '?')
 		sz = enter(inc > 0 ? "forward:" : "backward:", buf, sizeof(buf), mctl, kctl, nil);
-		unlockdisplay(display);
-	}
 	if(sz < 1)
 		return;
 
@@ -1216,6 +1213,7 @@
 	Scrollheight = MAX(16, f->height);
 	Coversz = MAX(64, stringwidth(f, "∫ 00:00:00/00:00:00 100%"));
 	unlockdisplay(display);
+	display->locking = 1;
 	if((mctl = initmouse(nil, screen)) == nil)
 		sysfatal("initmouse: %r");
 	if((kctl = initkeyboard(nil)) == nil)