aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2006-10-23 11:49:48 +0000
committerKim F. Storm2006-10-23 11:49:48 +0000
commit88efeba65ea05ecf778a56758138484ccdfd5103 (patch)
treee8e5134811d8d744377ec81e1b2d306a89503468 /src
parentfa695dab5e367801799a188f10d49f2caa1a095b (diff)
downloademacs-88efeba65ea05ecf778a56758138484ccdfd5103.tar.gz
emacs-88efeba65ea05ecf778a56758138484ccdfd5103.zip
(remember_mouse_glyph): Simplify last change.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index cf508288616..b85fdb4d71e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2081,7 +2081,7 @@ remember_mouse_glyph (f, gx, gy, rect)
2081 int gx, gy; 2081 int gx, gy;
2082 NativeRectangle *rect; 2082 NativeRectangle *rect;
2083{ 2083{
2084 Lisp_Object window = Qnil; 2084 Lisp_Object window;
2085 struct window *w; 2085 struct window *w;
2086 struct glyph_row *r, *gr, *end_row; 2086 struct glyph_row *r, *gr, *end_row;
2087 enum window_part part; 2087 enum window_part part;
@@ -2091,10 +2091,9 @@ remember_mouse_glyph (f, gx, gy, rect)
2091 /* Try to determine frame pixel position and size of the glyph under 2091 /* Try to determine frame pixel position and size of the glyph under
2092 frame pixel coordinates X/Y on frame F. */ 2092 frame pixel coordinates X/Y on frame F. */
2093 2093
2094 if (f->glyphs_initialized_p) 2094 if (!f->glyphs_initialized_p
2095 window = window_from_coordinates (f, gx, gy, &part, &x, &y, 0); 2095 || (window = window_from_coordinates (f, gx, gy, &part, &x, &y, 0),
2096 2096 NILP (window)))
2097 if (NILP (window))
2098 { 2097 {
2099 width = FRAME_SMALLEST_CHAR_WIDTH (f); 2098 width = FRAME_SMALLEST_CHAR_WIDTH (f);
2100 height = FRAME_SMALLEST_FONT_HEIGHT (f); 2099 height = FRAME_SMALLEST_FONT_HEIGHT (f);