diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-09-21 06:44:59 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-09-21 06:44:59 +0000 |
commit | 9a526b2df1ca53b5590fe8aeded80cdc2ed0d59c (patch) | |
tree | 1c4a0560563a3ca3c3fc37f216a152b298a997c3 /src | |
parent | f2b0603a58c501f664634c127b11d81cd55d9343 (diff) | |
download | emacs-9a526b2df1ca53b5590fe8aeded80cdc2ed0d59c.tar.gz |
(note_mouse_highlight): Pass new arg to overlays_at.
Diffstat (limited to 'src')
-rw-r--r-- | src/xterm.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index bd2ffc3444c..475e4b9b7dd 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1937,7 +1937,8 @@ note_mouse_highlight (f, x, y) /* Put all the overlays we want in a vector in overlay_vec. Store the length in len. */ - noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, &ignor1); + noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, + NULL, NULL); noverlays = sort_overlays (overlay_vec, noverlays, w); /* Find the highest priority overlay that has a mouse-face prop. */ @@ -4558,8 +4559,28 @@ x_new_font (f, fontname) char *atom = XGetAtomName (x_current_display, font->properties[i].name); if (!strcmp (atom, "FONT")) - full_name = XGetAtomName (x_current_display, - (Atom) (font->properties[i].card32)); + { + char *name = XGetAtomName (x_current_display, + (Atom) (font->properties[i].card32)); + char *p = name; + int dashes = 0; + + /* Count the number of dashes in the "full name". + If it is too few, this isn't really the font's full name, + so don't use it. + In X11R4, the fonts did not come with their canonical names + stored in them. */ + while (*p) + { + if (*p == '-') + dashes++; + p++; + } + + if (dashes >= 13) + full_name = name; + } + XFree (atom); } |