proper handling of hover/click events on windows - always act only on the topmost visible window in the area