aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 3a9f5c9ef9f..d17eaf0cccf 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5923,7 +5923,7 @@ XTmouse_position (struct frame **fp, int insist, Lisp_Object *bar_window,
5923 if (!f1 && insist > 0) 5923 if (!f1 && insist > 0)
5924 f1 = SELECTED_FRAME (); 5924 f1 = SELECTED_FRAME ();
5925 5925
5926 if (f1) 5926 if (f1 && FRAME_X_P (f1))
5927 { 5927 {
5928 /* Ok, we found a frame. Store all the values. 5928 /* Ok, we found a frame. Store all the values.
5929 last_mouse_glyph is a rectangle used to reduce the 5929 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,
5933 on it, i.e. into the same rectangles that matrices on 5933 on it, i.e. into the same rectangles that matrices on
5934 the frame are divided into. */ 5934 the frame are divided into. */
5935 5935
5936 /* FIXME: what if F1 is not an X frame? */
5937 dpyinfo = FRAME_DISPLAY_INFO (f1); 5936 dpyinfo = FRAME_DISPLAY_INFO (f1);
5938 remember_mouse_glyph (f1, win_x, win_y, &dpyinfo->last_mouse_glyph); 5937 remember_mouse_glyph (f1, win_x, win_y, &dpyinfo->last_mouse_glyph);
5939 dpyinfo->last_mouse_glyph_frame = f1; 5938 dpyinfo->last_mouse_glyph_frame = f1;