/[emacs]/emacs/src/msdos.c
ViewVC logotype

Diff of /emacs/src/msdos.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.161 by eliz, Sat Feb 16 15:41:30 2002 UTC revision 1.162 by eliz, Sat Feb 16 19:23:16 2002 UTC
# Line 1200  static int help_echo_pos; Line 1200  static int help_echo_pos;
1200     cursor moves into it.  */     cursor moves into it.  */
1201  int x_autoselect_window_p;  int x_autoselect_window_p;
1202    
1203    /* Last window where we saw the mouse.  Used by x-autoselect-window.  */
1204    static Lisp_Object last_mouse_window;
1205    
1206  static int mouse_preempted = 0; /* non-zero when XMenu gobbles mouse events */  static int mouse_preempted = 0; /* non-zero when XMenu gobbles mouse events */
1207    
1208  /* Set the mouse pointer shape according to whether it is in the  /* Set the mouse pointer shape according to whether it is in the
# Line 3402  dos_rawgetc () Line 3405  dos_rawgetc ()
3405                                                        mouse_last_y,                                                        mouse_last_y,
3406                                                        &mouse_area, 0);                                                        &mouse_area, 0);
3407                /* A window will be selected only when it is not                /* A window will be selected only when it is not
3408                   selected now and last mouse movement event was not in                   selected now.  A minubuffer window will be selected
3409                   it.  A minubuffer window will be selected iff it is                   iff it is active.  */
3410                   active.  */                if (!EQ (mouse_window, last_mouse_window)
3411                if (!EQ (mouse_window, selected_window)                    && !EQ (mouse_window, selected_window)
3412                    && (!MINI_WINDOW_P (XWINDOW (mouse_window))                    && (!MINI_WINDOW_P (XWINDOW (mouse_window))
3413                        || (EQ (mouse_window, minibuf_window)                        || (EQ (mouse_window, minibuf_window)
3414                            && minibuf_level > 0)))                            && minibuf_level > 0)))
3415                  {                  {
3416                    Fselect_window (mouse_window);                    Fselect_window (mouse_window);
3417                  }                  }
3418                  last_mouse_window = mouse_window;
3419              }              }
3420              else
3421                last_mouse_window = Qnil;
3422            previous_help_echo = help_echo;            previous_help_echo = help_echo;
3423            help_echo = help_echo_object = help_echo_window = Qnil;            help_echo = help_echo_object = help_echo_window = Qnil;
3424            help_echo_pos = -1;            help_echo_pos = -1;

Legend:
Removed from v.1.161  
changed lines
  Added in v.1.162

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26