diff options
| author | Christoph Lohmann <20h@r-36.net> | 2015-03-10 21:58:32 +0100 |
|---|---|---|
| committer | Christoph Lohmann <20h@r-36.net> | 2015-03-10 21:58:32 +0100 |
| commit | 28259f5750f0dc7f52bbaf8b746ec3dc576a58ee (patch) | |
| tree | 53aa6a468ae1bbf4d2754fe5c33a702958576baa | |
| parent | 9494362d0b35dfe2fa22c3e36ed7b2043b2e8a3d (diff) | |
| download | st-28259f5750f0dc7f52bbaf8b746ec3dc576a58ee.tar.gz st-28259f5750f0dc7f52bbaf8b746ec3dc576a58ee.zip | |
St now does only set PRIMARY on selection.
http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt
| -rw-r--r-- | st.c | 7 |
1 files changed, 0 insertions, 7 deletions
| @@ -1079,16 +1079,9 @@ selrequest(XEvent *e) { | |||
| 1079 | 1079 | ||
| 1080 | void | 1080 | void |
| 1081 | xsetsel(char *str) { | 1081 | xsetsel(char *str) { |
| 1082 | /* register the selection for both the clipboard and the primary */ | ||
| 1083 | Atom clipboard; | ||
| 1084 | |||
| 1085 | free(sel.clip); | 1082 | free(sel.clip); |
| 1086 | sel.clip = str; | 1083 | sel.clip = str; |
| 1087 | |||
| 1088 | XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime); | 1084 | XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime); |
| 1089 | |||
| 1090 | clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); | ||
| 1091 | XSetSelectionOwner(xw.dpy, clipboard, xw.win, CurrentTime); | ||
| 1092 | } | 1085 | } |
| 1093 | 1086 | ||
| 1094 | void | 1087 | void |
