diff options
| author | Gerd Moellmann | 2000-11-29 16:42:40 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-29 16:42:40 +0000 |
| commit | aad0f6ab75720cc488deea575310b9bee1dcdbb3 (patch) | |
| tree | 740523b6f8515d7f4b9932711ed87830c4fba7fc /src/xterm.c | |
| parent | ef128c783179adde59eb78a21a826e422c27cb43 (diff) | |
| download | emacs-aad0f6ab75720cc488deea575310b9bee1dcdbb3.tar.gz emacs-aad0f6ab75720cc488deea575310b9bee1dcdbb3.zip | |
(XTmouse_position) [USE_X_TOOLKIT]: When the mouse
is over the menu bar widget, say it's not on the frame.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index d38f5fe6909..01b8c5be56e 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7494,6 +7494,15 @@ XTmouse_position (fp, insist, bar_window, part, x, y, time) | |||
| 7494 | 7494 | ||
| 7495 | /* Is win one of our frames? */ | 7495 | /* Is win one of our frames? */ |
| 7496 | f1 = x_any_window_to_frame (FRAME_X_DISPLAY_INFO (*fp), win); | 7496 | f1 = x_any_window_to_frame (FRAME_X_DISPLAY_INFO (*fp), win); |
| 7497 | |||
| 7498 | #ifdef USE_X_TOOLKIT | ||
| 7499 | /* If we end up with the menu bar window, say it's not | ||
| 7500 | on the frame. */ | ||
| 7501 | if (f1 != NULL | ||
| 7502 | && f1->output_data.x->menubar_widget | ||
| 7503 | && win == XtWindow (f1->output_data.x->menubar_widget)) | ||
| 7504 | f1 = NULL; | ||
| 7505 | #endif /* USE_X_TOOLKIT */ | ||
| 7497 | } | 7506 | } |
| 7498 | 7507 | ||
| 7499 | if (x_had_errors_p (FRAME_X_DISPLAY (*fp))) | 7508 | if (x_had_errors_p (FRAME_X_DISPLAY (*fp))) |