aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2020-10-16 10:02:50 +0300
committerEli Zaretskii2020-10-16 10:02:50 +0300
commit72dd9119819eea5d8b1138e14a6010759f38366b (patch)
tree3f60f710275a6093828bb6868848dc3845d2cfb4 /src
parentace25f206640b94d876d7d0966fcd9e512f81fc9 (diff)
downloademacs-72dd9119819eea5d8b1138e14a6010759f38366b.tar.gz
emacs-72dd9119819eea5d8b1138e14a6010759f38366b.zip
Fix posn-at-x-y in builds --without-x
* src/keyboard.c (make_lispy_position): Don't exclude the window_or_frame = frame case from TTY-only builds. Reported by Jared Finder <jared@finder.org>. * doc/lispref/commands.texi (Click Events): Document the format of POSITION in click events on the frame's internal border.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 5f136f03ecf..fca71985b92 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -5246,7 +5246,6 @@ make_lispy_position (struct frame *f, Lisp_Object x, Lisp_Object y,
5246 extra_info))); 5246 extra_info)));
5247 } 5247 }
5248 5248
5249#ifdef HAVE_WINDOW_SYSTEM
5250 else if (f) 5249 else if (f)
5251 { 5250 {
5252 /* Return mouse pixel coordinates here. */ 5251 /* Return mouse pixel coordinates here. */
@@ -5254,7 +5253,9 @@ make_lispy_position (struct frame *f, Lisp_Object x, Lisp_Object y,
5254 xret = XFIXNUM (x); 5253 xret = XFIXNUM (x);
5255 yret = XFIXNUM (y); 5254 yret = XFIXNUM (y);
5256 5255
5257 if (FRAME_LIVE_P (f) 5256#ifdef HAVE_WINDOW_SYSTEM
5257 if (FRAME_WINDOW_P (f)
5258 && FRAME_LIVE_P (f)
5258 && FRAME_INTERNAL_BORDER_WIDTH (f) > 0 5259 && FRAME_INTERNAL_BORDER_WIDTH (f) > 0
5259 && !NILP (get_frame_param (f, Qdrag_internal_border))) 5260 && !NILP (get_frame_param (f, Qdrag_internal_border)))
5260 { 5261 {
@@ -5263,8 +5264,8 @@ make_lispy_position (struct frame *f, Lisp_Object x, Lisp_Object y,
5263 5264
5264 posn = builtin_lisp_symbol (internal_border_parts[part]); 5265 posn = builtin_lisp_symbol (internal_border_parts[part]);
5265 } 5266 }
5266 }
5267#endif 5267#endif
5268 }
5268 5269
5269 else 5270 else
5270 window_or_frame = Qnil; 5271 window_or_frame = Qnil;