mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-21 23:05:59 +01:00
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:
parent
a5a928bfc1
commit
f4020b2cc4
1 changed files with 3 additions and 0 deletions
3
x.c
3
x.c
|
@ -618,6 +618,9 @@ selrequest(XEvent *e)
|
|||
void
|
||||
setsel(char *str, Time t)
|
||||
{
|
||||
if (!str)
|
||||
return;
|
||||
|
||||
free(xsel.primary);
|
||||
xsel.primary = str;
|
||||
|
||||
|
|
Loading…
Reference in a new issue