Truncate window offsets to integer values. Fixes a bug seen on OSX.