Fix wrong mouse poisition report.

m_mouse_pos was always (0, -1) in some case, which makes profiling hard.