diff options
Diffstat (limited to 'src')
| -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))) |