Removed dynamic allocation of XEventClass array while opening tablets (didn't work)