diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1044,7 +1044,7 @@ propnotify(XEvent *e) | |||
| 1044 | if (xpev->state == PropertyNewValue && | 1044 | if (xpev->state == PropertyNewValue && |
| 1045 | (xpev->atom == XA_PRIMARY || | 1045 | (xpev->atom == XA_PRIMARY || |
| 1046 | xpev->atom == clipboard)) { | 1046 | xpev->atom == clipboard)) { |
| 1047 | slenotify(e); | 1047 | selnotify(e); |
| 1048 | } | 1048 | } |
| 1049 | } | 1049 | } |
| 1050 | 1050 | ||
| @@ -1056,6 +1056,8 @@ selnotify(XEvent *e) | |||
| 1056 | uchar *data, *last, *repl; | 1056 | uchar *data, *last, *repl; |
| 1057 | Atom type, incratom, property; | 1057 | Atom type, incratom, property; |
| 1058 | 1058 | ||
| 1059 | incratom = XInternAtom(xw.dpy, "INCR", 0); | ||
| 1060 | |||
| 1059 | ofs = 0; | 1061 | ofs = 0; |
| 1060 | if (e->type == SelectionNotify) { | 1062 | if (e->type == SelectionNotify) { |
| 1061 | property = e->xselection.property; | 1063 | property = e->xselection.property; |
