diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 114a7f12459..e3407dcaaec 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6495,6 +6495,12 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6495 | so update things that depend on mouse position. */ | 6495 | so update things that depend on mouse position. */ |
| 6496 | if (f && !f->output_data.x->hourglass_p) | 6496 | if (f && !f->output_data.x->hourglass_p) |
| 6497 | note_mouse_movement (f, &event.xmotion); | 6497 | note_mouse_movement (f, &event.xmotion); |
| 6498 | #ifdef USE_GTK | ||
| 6499 | /* We may get an EnterNotify on the buttons in the toolbar. In that | ||
| 6500 | case we moved out of any highlighted area and need to note this. */ | ||
| 6501 | if (!f && last_mouse_glyph_frame) | ||
| 6502 | note_mouse_movement (last_mouse_glyph_frame, &event); | ||
| 6503 | #endif | ||
| 6498 | goto OTHER; | 6504 | goto OTHER; |
| 6499 | 6505 | ||
| 6500 | case FocusIn: | 6506 | case FocusIn: |
| @@ -6522,6 +6528,11 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6522 | if (any_help_event_p) | 6528 | if (any_help_event_p) |
| 6523 | do_help = -1; | 6529 | do_help = -1; |
| 6524 | } | 6530 | } |
| 6531 | #ifdef USE_GTK | ||
| 6532 | /* See comment in EnterNotify above */ | ||
| 6533 | else if (last_mouse_glyph_frame) | ||
| 6534 | note_mouse_movement (last_mouse_glyph_frame, &event); | ||
| 6535 | #endif | ||
| 6525 | goto OTHER; | 6536 | goto OTHER; |
| 6526 | 6537 | ||
| 6527 | case FocusOut: | 6538 | case FocusOut: |