diff options
| author | Chong Yidong | 2010-11-04 15:34:11 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-11-04 15:34:11 -0400 |
| commit | c698128618583af08186c80dfc949dedf73f3b07 (patch) | |
| tree | 0d6a35220ac6826719b2cbffe3507e4e7bc89057 /src | |
| parent | 00d9e115db74c5f22b198b430bbdb11378a3b4b8 (diff) | |
| download | emacs-c698128618583af08186c80dfc949dedf73f3b07.tar.gz emacs-c698128618583af08186c80dfc949dedf73f3b07.zip | |
Backport from trunk.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xfns.c | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a16e35df108..b4c9cbcc159 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-04-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xfns.c (Fx_show_tip): Call try_window in a loop until | ||
| 4 | fonts_changed_p is zero (Bug#2423). | ||
| 5 | |||
| 1 | 2010-11-04 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2010-11-04 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our | 8 | * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our |
diff --git a/src/xfns.c b/src/xfns.c index 635264ea862..5979c81e7b7 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -5221,10 +5221,14 @@ Text larger than the specified size is clipped. */) | |||
| 5221 | old_buffer = current_buffer; | 5221 | old_buffer = current_buffer; |
| 5222 | set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer)); | 5222 | set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer)); |
| 5223 | current_buffer->truncate_lines = Qnil; | 5223 | current_buffer->truncate_lines = Qnil; |
| 5224 | clear_glyph_matrix (w->desired_matrix); | 5224 | |
| 5225 | clear_glyph_matrix (w->current_matrix); | 5225 | do { |
| 5226 | SET_TEXT_POS (pos, BEGV, BEGV_BYTE); | 5226 | fonts_changed_p = 0; |
| 5227 | try_window (FRAME_ROOT_WINDOW (f), pos, 0); | 5227 | clear_glyph_matrix (w->desired_matrix); |
| 5228 | clear_glyph_matrix (w->current_matrix); | ||
| 5229 | SET_TEXT_POS (pos, BEGV, BEGV_BYTE); | ||
| 5230 | try_window (FRAME_ROOT_WINDOW (f), pos, 0); | ||
| 5231 | } while (fonts_changed_p); | ||
| 5228 | 5232 | ||
| 5229 | /* Compute width and height of the tooltip. */ | 5233 | /* Compute width and height of the tooltip. */ |
| 5230 | width = height = 0; | 5234 | width = height = 0; |