From f443c1706ed2107a9801614af9de833fdaa28cac Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 15 Mar 1995 21:55:37 +0000 Subject: [PATCH] (Fmouse_position): Do work only if HAVE_MOUSE. --- src/frame.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frame.c b/src/frame.c index 3dc70c4d30c..f0e146cd361 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1055,6 +1055,7 @@ and nil for X and Y.") f = selected_frame; x = y = Qnil; +#ifdef HAVE_MOUSE /* It's okay for the hook to refrain from storing anything. */ if (mouse_position_hook) (*mouse_position_hook) (&f, @@ -1069,6 +1070,7 @@ and nil for X and Y.") XSETINT (x, col); XSETINT (y, row); } +#endif XSETFRAME (lispy_dummy, f); return Fcons (lispy_dummy, Fcons (x, y)); } -- 2.39.5