Adding clipboard patch
This commit is contained in:
parent
9aefe8e4f7
commit
ec58f77b6b
5 changed files with 22 additions and 475 deletions
8
x.c
8
x.c
|
|
@ -644,6 +644,10 @@ setsel(char *str, Time t)
|
|||
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
|
||||
if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
|
||||
selclear();
|
||||
|
||||
#if CLIPBOARD_PATCH
|
||||
clipcopy(NULL);
|
||||
#endif // CLIPBOARD_PATCH
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -661,7 +665,11 @@ brelease(XEvent *e)
|
|||
}
|
||||
|
||||
if (e->xbutton.button == Button2)
|
||||
#if CLIPBOARD_PATCH
|
||||
clippaste(NULL);
|
||||
#else
|
||||
selpaste(NULL);
|
||||
#endif // CLIPBOARD_PATCH
|
||||
else if (e->xbutton.button == Button1)
|
||||
mousesel(e, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue