fix regression by selecting clipboard text

"restore the old behaviour that the primary doesn't get deleted by a simple
left click"

Patch by Daniel Tameling <tamelingdaniel@gmail.com>, thanks!
This commit is contained in:
Hiltjo Posthuma 2018-03-20 21:25:30 +01:00
parent a5a928bfc1
commit f4020b2cc4

3
x.c
View File

@ -618,6 +618,9 @@ selrequest(XEvent *e)
void void
setsel(char *str, Time t) setsel(char *str, Time t)
{ {
if (!str)
return;
free(xsel.primary); free(xsel.primary);
xsel.primary = str; xsel.primary = str;