aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-27 07:52:21 +0400
committerDmitry Antipov2013-08-27 07:52:21 +0400
commit9fed97293c8bc78eef679db1ae3cab468ecc473e (patch)
tree679239fa933440b9192c8503704f1b35bc885303 /src/msdos.c
parent9e89d835b04c20a8cd3dfad452fa827d675b0938 (diff)
downloademacs-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/msdos.c')
-rw-r--r--src/msdos.c30
1 files changed, 6 insertions, 24 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 88a2eb60726..6018f72bfae 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -602,11 +602,7 @@ dos_set_window_size (int *rows, int *cols)
602 Lisp_Object window = hlinfo->mouse_face_window; 602 Lisp_Object window = hlinfo->mouse_face_window;
603 603
604 if (! NILP (window) && XFRAME (XWINDOW (window)->frame) == f) 604 if (! NILP (window) && XFRAME (XWINDOW (window)->frame) == f)
605 { 605 reset_mouse_highlight (hlinfo);
606 hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1;
607 hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1;
608 hlinfo->mouse_face_window = Qnil;
609 }
610 } 606 }
611 607
612 /* Enable bright background colors. */ 608 /* Enable bright background colors. */
@@ -1276,14 +1272,9 @@ IT_update_begin (struct frame *f)
1276 } 1272 }
1277 } 1273 }
1278 else if (mouse_face_frame && !FRAME_LIVE_P (mouse_face_frame)) 1274 else if (mouse_face_frame && !FRAME_LIVE_P (mouse_face_frame))
1279 { 1275 /* If the frame with mouse highlight was deleted, invalidate the
1280 /* If the frame with mouse highlight was deleted, invalidate the 1276 highlight info. */
1281 highlight info. */ 1277 reset_mouse_highlight (hlinfo);
1282 hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1;
1283 hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1;
1284 hlinfo->mouse_face_window = Qnil;
1285 hlinfo->mouse_face_mouse_frame = NULL;
1286 }
1287 1278
1288 unblock_input (); 1279 unblock_input ();
1289} 1280}
@@ -1843,17 +1834,8 @@ internal_terminal_init (void)
1843 if (colors[1] >= 0 && colors[1] < 16) 1834 if (colors[1] >= 0 && colors[1] < 16)
1844 FRAME_BACKGROUND_PIXEL (SELECTED_FRAME ()) = colors[1]; 1835 FRAME_BACKGROUND_PIXEL (SELECTED_FRAME ()) = colors[1];
1845 } 1836 }
1846 the_only_display_info.mouse_highlight.mouse_face_mouse_frame = NULL; 1837
1847 the_only_display_info.mouse_highlight.mouse_face_beg_row = 1838 reset_mouse_highlight (&the_only_display_info.mouse_highlight);
1848 the_only_display_info.mouse_highlight.mouse_face_beg_col = -1;
1849 the_only_display_info.mouse_highlight.mouse_face_end_row =
1850 the_only_display_info.mouse_highlight.mouse_face_end_col = -1;
1851 the_only_display_info.mouse_highlight.mouse_face_face_id = DEFAULT_FACE_ID;
1852 the_only_display_info.mouse_highlight.mouse_face_window = Qnil;
1853 the_only_display_info.mouse_highlight.mouse_face_mouse_x =
1854 the_only_display_info.mouse_highlight.mouse_face_mouse_y = 0;
1855 the_only_display_info.mouse_highlight.mouse_face_defer = 0;
1856 the_only_display_info.mouse_highlight.mouse_face_hidden = 0;
1857 1839
1858 if (have_mouse) /* detected in dos_ttraw, which see */ 1840 if (have_mouse) /* detected in dos_ttraw, which see */
1859 { 1841 {