diff --git a/src/conio/console.c b/src/conio/console.c index 760896dd695290f3b02276a6a6731c1ee2d9807b..31979cdce70a96f3ad30c6d2b595ba7283fd4626 100644 --- a/src/conio/console.c +++ b/src/conio/console.c @@ -577,12 +577,15 @@ video_event(XEvent *ev) copybuf=NULL; } pthread_mutex_unlock(©buf_mutex); + break; } case SelectionNotify: { int format; unsigned long len, bytes_left, dummy; Atom type; + if(ev->xselection.requestor!=win) + break; x11.XGetWindowProperty(dpy, win, ev->xselection.property, 0, 0, 0, AnyPropertyType, &type, &format, &len, &bytes_left, (unsigned char **)(&pastebuf)); if(bytes_left > 0 && format==8) x11.XGetWindowProperty(dpy, win, ev->xselection.property,0,bytes_left,0,AnyPropertyType,&type,&format,&len,&dummy,(unsigned char **)&pastebuf);