shithub: orca

Download patch

ref: 3879d418afc982b798a85c4faeb6524e451181f3
parent: d65528c3c631ce753eb3beb0bfbeb4d05fbac31a
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Feb 23 18:56:42 EST 2020

plan9: moving with alt+lmb: take a snapshot once when dragging

--- a/plan9.c
+++ b/plan9.c
@@ -1318,7 +1318,8 @@
 				if (altdown) {
 					p = ptmouse(m.xy);
 					if (!eqpt(p, cur)) {
-						snapshot();
+						if (oldbuttons == 0)
+							snapshot();
 						selmove(p.x-cur.x, p.y-cur.y);
 						curmove(p.x-cur.x, p.y-cur.y);
 					}