diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-03-20 21:25:30 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-03-20 21:25:30 +0100 |
commit | f4020b2cc4fe45c9e8bfe47fc73deccd867cf9de (patch) | |
tree | 51753c624e8cfa76216cd8a41e64495dea43d622 /x.c | |
parent | a5a928bfc1dd049780a45e072cb4ee42de7219bf (diff) | |
download | st-patched-f4020b2cc4fe45c9e8bfe47fc73deccd867cf9de.tar.bz2 st-patched-f4020b2cc4fe45c9e8bfe47fc73deccd867cf9de.tar.xz st-patched-f4020b2cc4fe45c9e8bfe47fc73deccd867cf9de.zip |
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!
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -618,6 +618,9 @@ selrequest(XEvent *e) | |||
618 | void | 618 | void |
619 | setsel(char *str, Time t) | 619 | setsel(char *str, Time t) |
620 | { | 620 | { |
621 | if (!str) | ||
622 | return; | ||
623 | |||
621 | free(xsel.primary); | 624 | free(xsel.primary); |
622 | xsel.primary = str; | 625 | xsel.primary = str; |
623 | 626 | ||