tsnarf - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 94bd4b6c2cf40d30986ce45afc76cfda2ec09ed9
(DIR) parent bdc14ad47876a3bbdbb0df6101c36589855329f1
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 23 Mar 2006 23:46:00 +0000
snarf
Diffstat:
M src/cmd/snarfer/snarfer.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/src/cmd/snarfer/snarfer.c b/src/cmd/snarfer/snarfer.c
t@@ -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?