--- shmbitmap.c.org	2005-03-29 18:50:13.000000000 +0200
+++ shmbitmap.c	2005-03-29 18:51:24.000000000 +0200
@@ -187,6 +187,9 @@
 void
 ShmPutBitmap (int x, int y, int w, int h, void *_dp)
 {
+  if (x < 0 || y < 0)
+    return;
+
 /* no clipping */
   uchar          *dp = _dp;
   uchar          *vp, *vpline;
