Commit Diff


commit - 1d620367bd070f2eae99a70f8537c701a737650a
commit + 7e9e092da8d0c91c8075d9f0a4b1700de8f46753
blob - 8b1c1376a85aed16c9850199ed262bd550354327
blob + 041580ad6721c39aacddeef513eec1eb1b301177
--- src/libdraw/x11-itrans.c
+++ src/libdraw/x11-itrans.c
@@ -374,6 +374,12 @@ _xgetsnarf(XDisplay *xd)
 	XWindow w;
 
 	qlock(&clip.lk);
+	/*
+	 * Have we snarfed recently and the X server hasn't caught up?
+	 */
+	if(_x.putsnarf != _x.assertsnarf)
+		goto mine;
+
 	/*
 	 * Is there a primary selection (highlighted text in an xterm)?
 	 */