diff --git a/src/frame.c b/src/frame.c index 3b8ce346cad..f2262f3a216 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1535,7 +1535,7 @@ and returns whatever that function returns. */) #ifdef HAVE_MOUSE /* It's okay for the hook to refrain from storing anything. */ - if (mouse_position_hook) + if (!FRAME_TERMCAP_P (f) && mouse_position_hook) (*mouse_position_hook) (&f, -1, &lispy_dummy, &party_dummy, &x, &y,