Use the simpler function instead of querying the screen via position (cherry picked from commit b3c173e5)