Introduction
Introduction Statistics Contact Development Disclaimer Help
st-clipboard-0.8.2.diff - sites - public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log
Files
Refs
---
st-clipboard-0.8.2.diff (458B)
---
1 diff --git a/x.c b/x.c
2 index 0422421..e00d930 100644
3 --- a/x.c
4 +++ b/x.c
5 @@ -627,6 +627,8 @@ setsel(char *str, Time t)
6 XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
7 if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
8 selclear();
9 +
10 + clipcopy(NULL);
11 }
12
13 void
14 @@ -644,7 +646,7 @@ brelease(XEvent *e)
15 }
16
17 if (e->xbutton.button == Button2)
18 - selpaste(NULL);
19 + clippaste(NULL);
20 else if (e->xbutton.button == Button1)
21 mousesel(e, 1);
22 }
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.