shithub: asif

Download patch

ref: 955bf7ef1e2d5c115a6e1752f976d10a7481e260
parent: a8c9ee3f9f94a4789bb7b86a8dbc7392e6b94985
author: qwx <qwx@sciops.net>
date: Fri Mar 25 21:13:08 EDT 2022

client: print errors from mouseinput

--- a/path/client.c
+++ b/path/client.c
@@ -48,8 +48,10 @@
 		case Amouse:
 			if(mc->buttons == 0)
 				break;
-			if((n = scrselect(m.xy)) != nil && p != n)
-				mouseinput(n, mc->Mouse);
+			if((n = scrselect(m.xy)) != nil && p != n){
+				if(mouseinput(n, mc->Mouse) < 0)
+					fprint(2, "%r\n");
+			}
 			p = n;
 			updatedrw();
 			break;