diff options
author | rsc <devnull@localhost> | 2006-03-23 23:46:00 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-03-23 23:46:00 +0000 |
commit | 94bd4b6c2cf40d30986ce45afc76cfda2ec09ed9 (patch) | |
tree | 258f0a8717c74699bb47e03ef6d7a97e25aae618 | |
parent | bdc14ad47876a3bbdbb0df6101c36589855329f1 (diff) | |
download | plan9port-94bd4b6c2cf40d30986ce45afc76cfda2ec09ed9.tar.gz plan9port-94bd4b6c2cf40d30986ce45afc76cfda2ec09ed9.tar.bz2 plan9port-94bd4b6c2cf40d30986ce45afc76cfda2ec09ed9.zip |
snarf
-rw-r--r-- | src/cmd/snarfer/snarfer.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/cmd/snarfer/snarfer.c b/src/cmd/snarfer/snarfer.c index 16f9b2ba..ab369105 100644 --- 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? |