Fixed mouse Y position after restoring window from Mac OS fullscreen mode

After going to MacOs fullscreen and then back, mouse Y position was invalid.