aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/snarfer/snarfer.c13
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?