[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master a970a2a489: Make sure the X mouse position hook always looks at a
From: |
Po Lu |
Subject: |
master a970a2a489: Make sure the X mouse position hook always looks at an X frame |
Date: |
Fri, 14 Jan 2022 04:44:04 -0500 (EST) |
branch: master
commit a970a2a48926d2eca0b767d01c809fbebdc320d7
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Make sure the X mouse position hook always looks at an X frame
* src/xterm.c (XTmouse_position): Check that f1 is an X frame.
---
src/xterm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index 3a9f5c9ef9..d17eaf0ccc 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5923,7 +5923,7 @@ XTmouse_position (struct frame **fp, int insist,
Lisp_Object *bar_window,
if (!f1 && insist > 0)
f1 = SELECTED_FRAME ();
- if (f1)
+ if (f1 && FRAME_X_P (f1))
{
/* Ok, we found a frame. Store all the values.
last_mouse_glyph is a rectangle used to reduce the
@@ -5933,7 +5933,6 @@ XTmouse_position (struct frame **fp, int insist,
Lisp_Object *bar_window,
on it, i.e. into the same rectangles that matrices on
the frame are divided into. */
- /* FIXME: what if F1 is not an X frame? */
dpyinfo = FRAME_DISPLAY_INFO (f1);
remember_mouse_glyph (f1, win_x, win_y, &dpyinfo->last_mouse_glyph);
dpyinfo->last_mouse_glyph_frame = f1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master a970a2a489: Make sure the X mouse position hook always looks at an X frame,
Po Lu <=