diff options
| author | Dmitry Antipov | 2013-08-27 07:52:21 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-27 07:52:21 +0400 |
| commit | 9fed97293c8bc78eef679db1ae3cab468ecc473e (patch) | |
| tree | 679239fa933440b9192c8503704f1b35bc885303 /src/window.c | |
| parent | 9e89d835b04c20a8cd3dfad452fa827d675b0938 (diff) | |
| download | emacs-9fed97293c8bc78eef679db1ae3cab468ecc473e.tar.gz emacs-9fed97293c8bc78eef679db1ae3cab468ecc473e.zip | |
* lisp.h (Mouse_HLInfo): Move from here...
* dispextern.h (Mouse_HLInfo): ...to here and offload lisp.h.
(reset_mouse_highlight): New function.
* msdos.c (dos_set_window_size, IT_update_begin)
(internal_terminal_init):
* nsterm.m (ns_update_window_end, x_free_frame_resources)
(ns_initialize_display_info):
* w32console.c (initialize_w32_display):
* w32term.c (x_update_window_end, x_free_frame_resources)
(w32_initialize_display_info):
* xterm.c (x_update_window_end, x_free_frame_resources, x_term_init):
* window.c (Fdelete_other_windows_internal):
* xdisp.c (clear_mouse_face, cancel_mouse_face): Use it.
* termchar.h (toplevel):
* xterm.h (toplevel): Include dispextern.h.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c index 6ef32608a56..e40572bf13d 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -2842,7 +2842,7 @@ window-start value is reasonable when this function is called. */) | |||
| 2842 | block_input (); | 2842 | block_input (); |
| 2843 | if (!FRAME_INITIAL_P (f)) | 2843 | if (!FRAME_INITIAL_P (f)) |
| 2844 | { | 2844 | { |
| 2845 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); | 2845 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); |
| 2846 | 2846 | ||
| 2847 | /* We are going to free the glyph matrices of WINDOW, and with | 2847 | /* We are going to free the glyph matrices of WINDOW, and with |
| 2848 | that we might lose any information about glyph rows that have | 2848 | that we might lose any information about glyph rows that have |
| @@ -2852,11 +2852,7 @@ window-start value is reasonable when this function is called. */) | |||
| 2852 | frame's up-to-date hook that mouse highlight was overwritten, | 2852 | frame's up-to-date hook that mouse highlight was overwritten, |
| 2853 | so that it will arrange for redisplaying the highlight. */ | 2853 | so that it will arrange for redisplaying the highlight. */ |
| 2854 | if (EQ (hlinfo->mouse_face_window, window)) | 2854 | if (EQ (hlinfo->mouse_face_window, window)) |
| 2855 | { | 2855 | reset_mouse_highlight (hlinfo); |
| 2856 | hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1; | ||
| 2857 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1; | ||
| 2858 | hlinfo->mouse_face_window = Qnil; | ||
| 2859 | } | ||
| 2860 | } | 2856 | } |
| 2861 | free_window_matrices (r); | 2857 | free_window_matrices (r); |
| 2862 | 2858 | ||