# HG changeset patch # User Kim F. Storm # Date 1161604188 0 # Node ID 0c7cbc22f015d409855f522cf110739310926f9d # Parent b6c9688b6b620eb765a941c0c9768ccbb11a7d25 (remember_mouse_glyph): Simplify last change. diff -r b6c9688b6b62 -r 0c7cbc22f015 src/xdisp.c --- a/src/xdisp.c Mon Oct 23 10:02:31 2006 +0000 +++ b/src/xdisp.c Mon Oct 23 11:49:48 2006 +0000 @@ -2081,7 +2081,7 @@ int gx, gy; NativeRectangle *rect; { - Lisp_Object window = Qnil; + Lisp_Object window; struct window *w; struct glyph_row *r, *gr, *end_row; enum window_part part; @@ -2091,10 +2091,9 @@ /* Try to determine frame pixel position and size of the glyph under frame pixel coordinates X/Y on frame F. */ - if (f->glyphs_initialized_p) - window = window_from_coordinates (f, gx, gy, &part, &x, &y, 0); - - if (NILP (window)) + if (!f->glyphs_initialized_p + || (window = window_from_coordinates (f, gx, gy, &part, &x, &y, 0), + NILP (window))) { width = FRAME_SMALLEST_CHAR_WIDTH (f); height = FRAME_SMALLEST_FONT_HEIGHT (f);