feat/clipboard #6

Merged
syrell merged 2 commits from feat/clipboard into custom 2023-06-27 22:30:31 +02:00

6
x.c
View File

@ -689,6 +689,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
@ -712,7 +714,9 @@ brelease(XEvent *e)
if (mouseaction(e, 1))
return;
if (btn == Button1)
if (btn == Button3)
selpaste(NULL);
else if (btn == Button1)
mousesel(e, 1);
}