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 |
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; |