Typo and the missing incr atom from the patches.
authorChristoph Lohmann <20h@r-36.net>
Fri, 10 Jul 2015 12:17:51 +0000 (14:17 +0200)
committerChristoph Lohmann <20h@r-36.net>
Fri, 10 Jul 2015 12:17:51 +0000 (14:17 +0200)
st.c

diff --git a/st.c b/st.c
index e65e981..486735d 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1044,7 +1044,7 @@ propnotify(XEvent *e)
        if (xpev->state == PropertyNewValue &&
                        (xpev->atom == XA_PRIMARY ||
                         xpev->atom == clipboard)) {
-               slenotify(e);
+               selnotify(e);
        }
 }
 
@@ -1056,6 +1056,8 @@ selnotify(XEvent *e)
        uchar *data, *last, *repl;
        Atom type, incratom, property;
 
+       incratom = XInternAtom(xw.dpy, "INCR", 0);
+
        ofs = 0;
        if (e->type == SelectionNotify) {
                property = e->xselection.property;