From 5bbb1806a1b608c1b1ff2a7a1b2acc5a67e8ea6c Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 6 Feb 2026 03:01:00 +0100 Subject: copy text on selection --- x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'x.c') diff --git a/x.c b/x.c index fbb7891..bda2d81 100644 --- a/x.c +++ b/x.c @@ -361,8 +361,10 @@ mousesel(XEvent *e, int done) } } selextend(evcol(e), evrow(e), seltype, done); - if (done) + if (done) { setsel(getsel(), e->xbutton.time); + clipcopy(NULL); /* Reuse existing function */ + } } void -- cgit v1.2.3