Some versions of X, have the Shape extension, but apparently not "ShapeInput" (Fixes...
authorPhilip Brown <phil@bolthole.com>
Sat, 16 Oct 2010 20:13:36 +0000 (16:13 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Jan 2011 19:19:23 +0000 (14:19 -0500)
commit9c356d370ab3e5a6b28e38ce8289d80bf35c8828
tree4342627d672e6393985a8f54f63a1729b79b52a6
parent7c33f45e09350bdd40990ef98cf4765d780263fe
Some versions of X, have the Shape extension, but apparently not "ShapeInput" (Fixes bug #4662)

the sawfish window manager has ifdefs for this sort of situation.
I followed suit, and #ifdef'd it, and it now works for me.
patch attached.

Slight changes to the patch from danakj@orodu.net for readability
openbox/event.c
openbox/frame.c