fixed ewmh event hook getting deleted