[dev] [st] Issues

From: <moosotc_AT_gmail.com>
Date: Sun, 25 Dec 2016 19:15:10 +0300

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

This archive was generated by hypermail 2.3.0 : Sun Dec 25 2016 - 17:24:13 CET