Commit f443c170 authored by Karl Heuer's avatar Karl Heuer

(Fmouse_position): Do work only if HAVE_MOUSE.

parent 38d404db
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment