head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.20 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.18 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.16 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.14 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.12 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.10 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.8 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.6 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.4 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.2 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.1.0.6 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.4 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.2 pkgsrc-2007Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2008.03.08.20.42.03; author tnn; state dead; branches; next 1.1; 1.1 date 2007.06.08.17.49.54; author wiz; state Exp; branches; next ; desc @@ 1.2 log @PR pkg/38200: Sergey Svishchev: Update x11/xclip to 0.10. (also add DESTDIR support) Version 0.10 (Peter Astrand) The performance has been greatly enhanced, especially over slow networks. Two helper scripts, xclip-copyfile and xclip-pastefile, has been added. Taken together, xclip can now be used as an alternative to sftp/scp, thus avoiding password prompt when X11 forwarding has already been setup. Autoconf is now used instead of Imake. The maintainer and web site address has been updated. All Debian patches have been applied. Version 0.09: (Baruch Even) Changed dir to / when staying running so that the current directory can be umounted if necessary. @ text @$NetBSD: patch-aa,v 1.1 2007/06/08 17:49:54 wiz Exp $ KDE integration (from Debian bug 172812) --- xclib.c.orig Mon Dec 17 01:14:40 2001 +++ xclib.c Thu Dec 12 13:16:57 2002 @@@@ -100,7 +100,7 @@@@ ) { /* a property for other windows to put their selection into */ - Atom pty, inc, pty_type; + Atom pty, inc, pty_type, targets; int pty_format; /* buffer for XGetWindowProperty to dump data into */ @@@@ -111,6 +111,7 @@@@ unsigned char *ltxt; pty = XInternAtom(dpy, "XCLIP_OUT", False); + targets = XInternAtom(dpy, "TARGETS", False); switch (*context) { @@@@ -353,7 +354,9 @@@@ * transfers only) */ XEvent res; /* response to event */ - Atom inc; + Atom inc, targets; + + targets = XInternAtom(dpy, "TARGETS", False); switch (*context) { @@@@ -369,7 +372,22 @@@@ *pos = 0; /* put the data into an property */ - if (len > XC_CHUNK) + if (evt.xselectionrequest.target == targets) + { + Atom types[2] = { targets, XA_STRING }; + + /* send data all at once (not using INCR) */ + XChangeProperty( + dpy, + *win, + *pty, + targets, + 8, + PropModeReplace, + (unsigned char*) types, + (int)sizeof(types) + ); + } else if (len > XC_CHUNK) { /* INCR Atom to set response property to */ inc = XInternAtom(dpy, "INCR", False); @ 1.1 log @Sergey Svishchev writes (in PR 33255), providing a patch: kde uses the X clipboard's content negotiation features, which almost nobody else does, but xclip was doing the wrong thing when asked for content negotiation stuff (from Debian bug report 172812). Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @