emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/msdos.c


From: Eli Zaretskii
Subject: [Emacs-diffs] Changes to emacs/src/msdos.c
Date: Sat, 16 Feb 2002 14:23:16 -0500

Index: emacs/src/msdos.c
diff -c emacs/src/msdos.c:1.161 emacs/src/msdos.c:1.162
*** emacs/src/msdos.c:1.161     Sat Feb 16 10:41:30 2002
--- emacs/src/msdos.c   Sat Feb 16 14:23:16 2002
***************
*** 1200,1205 ****
--- 1200,1208 ----
     cursor moves into it.  */
  int x_autoselect_window_p;
  
+ /* Last window where we saw the mouse.  Used by x-autoselect-window.  */
+ static Lisp_Object last_mouse_window;
+ 
  static int mouse_preempted = 0;       /* non-zero when XMenu gobbles mouse 
events */
  
  /* Set the mouse pointer shape according to whether it is in the
***************
*** 3402,3418 ****
                                                      mouse_last_y,
                                                      &mouse_area, 0);
              /* A window will be selected only when it is not
!                selected now and last mouse movement event was not in
!                it.  A minubuffer window will be selected iff it is
!                active.  */
!             if (!EQ (mouse_window, selected_window)
                  && (!MINI_WINDOW_P (XWINDOW (mouse_window))
                      || (EQ (mouse_window, minibuf_window)
                          && minibuf_level > 0)))
                {
                  Fselect_window (mouse_window);
                }
            }
          previous_help_echo = help_echo;
          help_echo = help_echo_object = help_echo_window = Qnil;
          help_echo_pos = -1;
--- 3405,3424 ----
                                                      mouse_last_y,
                                                      &mouse_area, 0);
              /* A window will be selected only when it is not
!                selected now.  A minubuffer window will be selected
!                iff it is active.  */
!             if (!EQ (mouse_window, last_mouse_window)
!                 && !EQ (mouse_window, selected_window)
                  && (!MINI_WINDOW_P (XWINDOW (mouse_window))
                      || (EQ (mouse_window, minibuf_window)
                          && minibuf_level > 0)))
                {
                  Fselect_window (mouse_window);
                }
+             last_mouse_window = mouse_window;
            }
+         else
+           last_mouse_window = Qnil;
          previous_help_echo = help_echo;
          help_echo = help_echo_object = help_echo_window = Qnil;
          help_echo_pos = -1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]