Updated WindowWidth hack for mono support