aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 3c78efbc47b..7142c3ada77 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -946,9 +946,6 @@ IT_write_glyphs (struct frame *f, struct glyph *str, int str_len)
946 Mouse Highlight (and friends..) 946 Mouse Highlight (and friends..)
947 ************************************************************************/ 947 ************************************************************************/
948 948
949/* Last window where we saw the mouse. Used by mouse-autoselect-window. */
950static Lisp_Object last_mouse_window;
951
952static int mouse_preempted = 0; /* non-zero when XMenu gobbles mouse events */ 949static int mouse_preempted = 0; /* non-zero when XMenu gobbles mouse events */
953 950
954int 951int
@@ -1546,11 +1543,6 @@ IT_reset_terminal_modes (struct terminal *term)
1546 term_setup_done = 0; 1543 term_setup_done = 0;
1547} 1544}
1548 1545
1549static void
1550IT_set_terminal_window (struct frame *f, int foo)
1551{
1552}
1553
1554/* Remember the screen colors of the current frame, to serve as the 1546/* Remember the screen colors of the current frame, to serve as the
1555 default colors for newly-created frames. */ 1547 default colors for newly-created frames. */
1556DEFUN ("msdos-remember-default-colors", Fmsdos_remember_default_colors, 1548DEFUN ("msdos-remember-default-colors", Fmsdos_remember_default_colors,
@@ -1871,7 +1863,7 @@ initialize_msdos_display (struct terminal *term)
1871 term->ring_bell_hook = IT_ring_bell; 1863 term->ring_bell_hook = IT_ring_bell;
1872 term->reset_terminal_modes_hook = IT_reset_terminal_modes; 1864 term->reset_terminal_modes_hook = IT_reset_terminal_modes;
1873 term->set_terminal_modes_hook = IT_set_terminal_modes; 1865 term->set_terminal_modes_hook = IT_set_terminal_modes;
1874 term->set_terminal_window_hook = IT_set_terminal_window; 1866 term->set_terminal_window_hook = NULL;
1875 term->update_begin_hook = IT_update_begin; 1867 term->update_begin_hook = IT_update_begin;
1876 term->update_end_hook = IT_update_end; 1868 term->update_end_hook = IT_update_end;
1877 term->frame_up_to_date_hook = IT_frame_up_to_date; 1869 term->frame_up_to_date_hook = IT_frame_up_to_date;
@@ -2673,10 +2665,10 @@ dos_rawgetc (void)
2673 /* Generate SELECT_WINDOW_EVENTs when needed. */ 2665 /* Generate SELECT_WINDOW_EVENTs when needed. */
2674 if (!NILP (Vmouse_autoselect_window)) 2666 if (!NILP (Vmouse_autoselect_window))
2675 { 2667 {
2676 mouse_window = window_from_coordinates (SELECTED_FRAME (), 2668 static Lisp_Object last_mouse_window;
2677 mouse_last_x, 2669
2678 mouse_last_y, 2670 mouse_window = window_from_coordinates
2679 0, 0); 2671 (SELECTED_FRAME (), mouse_last_x, mouse_last_y, 0, 0);
2680 /* A window will be selected only when it is not 2672 /* A window will be selected only when it is not
2681 selected now, and the last mouse movement event was 2673 selected now, and the last mouse movement event was
2682 not in it. A minibuffer window will be selected iff 2674 not in it. A minibuffer window will be selected iff
@@ -2691,10 +2683,9 @@ dos_rawgetc (void)
2691 event.timestamp = event_timestamp (); 2683 event.timestamp = event_timestamp ();
2692 kbd_buffer_store_event (&event); 2684 kbd_buffer_store_event (&event);
2693 } 2685 }
2686 /* Remember the last window where we saw the mouse. */
2694 last_mouse_window = mouse_window; 2687 last_mouse_window = mouse_window;
2695 } 2688 }
2696 else
2697 last_mouse_window = Qnil;
2698 2689
2699 previous_help_echo_string = help_echo_string; 2690 previous_help_echo_string = help_echo_string;
2700 help_echo_string = help_echo_object = help_echo_window = Qnil; 2691 help_echo_string = help_echo_object = help_echo_window = Qnil;