Compare commits

...

2 Commits

Author SHA1 Message Date
88051b8007 Added paste on right click 2023-06-27 20:54:16 +02:00
07d63aa5f6 Added clipboard v2018-03-09 patch 2023-06-20 23:11:24 +02:00

6
x.c
View File

@ -686,6 +686,8 @@ setsel(char *str, Time t)
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
selclear();
xclipcopy();
}
void
@ -709,7 +711,9 @@ brelease(XEvent *e)
if (mouseaction(e, 1))
return;
if (btn == Button1)
if (btn == Button3)
selpaste(NULL);
else if (btn == Button1)
mousesel(e, 1);
}