summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorPhilip Brown <phil@bolthole.com>2010-10-16 16:13:36 -0400
committerDana Jansens <danakj@orodu.net>2011-01-24 14:19:23 -0500
commit9c356d370ab3e5a6b28e38ce8289d80bf35c8828 (patch)
tree4342627d672e6393985a8f54f63a1729b79b52a6 /openbox/event.c
parent7c33f45e09350bdd40990ef98cf4765d780263fe (diff)
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
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c
index b0a53dba..8a52402e 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -1695,10 +1695,12 @@ static void event_handle_client(ObClient *client, XEvent *e)
client->shaped = ((XShapeEvent*)e)->shaped;
kind = ShapeBounding;
break;
+#ifdef ShapeInput
case ShapeInput:
client->shaped_input = ((XShapeEvent*)e)->shaped;
kind = ShapeInput;
break;
+#endif
default:
g_assert_not_reached();
}