plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 94bd4b6c2cf40d30986ce45afc76cfda2ec09ed9
parent bdc14ad47876a3bbdbb0df6101c36589855329f1
Author: rsc <devnull@localhost>
Date:   Thu, 23 Mar 2006 23:46:00 +0000

snarf

Diffstat:
Msrc/cmd/snarfer/snarfer.c | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/cmd/snarfer/snarfer.c b/src/cmd/snarfer/snarfer.c @@ -200,13 +200,18 @@ xgetsnarf(void) xd = xdisplay; + w = None; + clipboard = None; + /* * Is there a primary selection (highlighted text in an xterm)? */ - clipboard = XA_PRIMARY; - w = XGetSelectionOwner(xd, XA_PRIMARY); - if(w == drawable) - return snarf; + if(0){ + clipboard = XA_PRIMARY; + w = XGetSelectionOwner(xd, XA_PRIMARY); + if(w == drawable) + return snarf; + } /* * If not, is there a clipboard selection?