Fix calculation of cursor position.

Since _gdk_quartz_window_gdk_xy_to_xy() cannot be used from here,
we do same calculation by ourself.