fixed bug where widget events got sent to the object with the lowest zorder instead of the highest