> This should definitely be fixed in mainline. I've attached an > alternative patch which is basically the same as yours, but imo > slightly neater.
I do like your patch, something paranoid in me just wanted to point out that your patch relies on the implementation of XGetClassHint not tempering with ch when returning failure. I don't believe this really matters though. -- Eckehard Berns