Attempt to fix window focus issues.