diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc index 6754c428f10..2bd1bd46f22 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cc +++ b/intern/ghost/intern/GHOST_SystemWayland.cc @@ -6097,8 +6097,8 @@ static GHOST_TSuccess getCursorPositionClientRelative_impl( y = wl_fixed_to_int(win->wl_fixed_to_window(xy_wrap[1])); } else { - x = win->wl_fixed_to_window(seat_state_pointer->xy[0]); - y = win->wl_fixed_to_window(seat_state_pointer->xy[1]); + x = wl_fixed_to_int(win->wl_fixed_to_window(seat_state_pointer->xy[0])); + y = wl_fixed_to_int(win->wl_fixed_to_window(seat_state_pointer->xy[1])); } return GHOST_kSuccess;