Hello,
I grew accustomed to button3 behavior in rxvt and wanted to add
something similar to st, my attempt sort of works but is not ideal and
not what rxvt does, here's the diff:
_AT_@ -989,6 +996,19 @@ bpress(XEvent *e)
sel.tclick2 = sel.tclick1;
sel.tclick1 = now;
}
+ if (e->xbutton.button == Button3) {
+ sel.mode = SEL_EMPTY;
+ sel.type = SEL_REGULAR;
+ sel.ne.x = x2col(e->xbutton.x);
+ sel.ne.y = y2row(e->xbutton.y);
+
+ sel.snap = 0;
+ selnormalize();
+
+ tsetdirt(sel.nb.y, sel.ne.y);
+ sel.tclick2 = now;
+ sel.tclick1 = now;
+ }
}
This is on top of st-scrollback-0.7.diff. Any help in matching rxvt's
behavior is appreciated.
Second issue:
cat(1)ing
https://www.cl.cam.ac.uk/~mgk25/ucs/full-bmp.txt leads to a
segfault inside Xft (with 50% chance) furthermore my attempts to
reproduce it under valgrind(1) failed.
Thanks.
--
mailto:moosotc_AT_gmail.com
Received on Sun Dec 25 2016 - 17:15:10 CET