X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=4ed8319edb6edbd7b4f593df5a3a5a6ccd500e9f;hb=b9390a54968c3bc4f4270afdcf5b85911df01611;hp=83acd56da9491558c4a29e70cebdd6afc9127d2e;hpb=d3e0f3444b91418e3d3cda591c5d8c50caa22957;p=st.git diff --git a/st.c b/st.c index 83acd56..4ed8319 100644 --- a/st.c +++ b/st.c @@ -944,7 +944,7 @@ getsel(void) { ptr = str = xmalloc(bufsize); /* append every set & selected glyph to the selection */ - for(y = sel.nb.y; y < sel.ne.y + 1; y++) { + for(y = sel.nb.y; y <= sel.ne.y; y++) { linelen = tlinelen(y); if(sel.type == SEL_RECTANGULAR) { @@ -3919,8 +3919,6 @@ run(void) { /* Waiting for window mapping */ do { XNextEvent(xw.dpy, &ev); - if(XFilterEvent(&ev, None)) - continue; if(ev.type == ConfigureNotify) { w = ev.xconfigure.width; h = ev.xconfigure.height;