shithub: riscv

Download patch

ref: 8c7a4e28d5d9413925aa9e1e23a36e170658f20d
parent: b9796e0774636821b0a0c50c600920805642960a
author: cinap_lenrek <[email protected]>
date: Thu Sep 20 17:25:38 EDT 2018

vt: make selecting() wait until all buttons are lifted avoiding menu when chording

--- a/sys/src/cmd/vt/main.c
+++ b/sys/src/cmd/vt/main.c
@@ -1057,6 +1057,7 @@
 	case 3:	snarfsel();	break;
 	case 5:	paste();	break;
 	}
+	while(mc->buttons&7) readmouse(mc);
 	t = -mc->msec;
 }