$NetBSD: patch-ac,v 1.3 2007/10/20 14:13:45 tnn Exp $ --- src/events.c.orig 2007-07-26 19:55:01.000000000 +0200 +++ src/events.c @@ -1155,7 +1155,11 @@ shape_notify (XEvent *ev) XShapeEvent *sev = (XShapeEvent *)ev; Lisp_Window *w = find_window_by_id (sev->window); if (w != 0 && sev->window == w->id - && (sev->kind == ShapeBounding || sev->kind == ShapeInput)) + && (sev->kind == ShapeBounding +#ifdef ShapeInput + || sev->kind == ShapeInput +#endif +)) { if (sev->kind == ShapeBounding) w->shaped = sev->shaped ? 1 : 0;