From: Gerd Moellmann Date: Wed, 29 Nov 2000 16:42:40 +0000 (+0000) Subject: (XTmouse_position) [USE_X_TOOLKIT]: When the mouse X-Git-Tag: emacs-pretest-21.0.93~375 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aad0f6ab75720cc488deea575310b9bee1dcdbb3;p=emacs.git (XTmouse_position) [USE_X_TOOLKIT]: When the mouse is over the menu bar widget, say it's not on the frame. --- 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) /* Is win one of our frames? */ f1 = x_any_window_to_frame (FRAME_X_DISPLAY_INFO (*fp), win); + +#ifdef USE_X_TOOLKIT + /* If we end up with the menu bar window, say it's not + on the frame. */ + if (f1 != NULL + && f1->output_data.x->menubar_widget + && win == XtWindow (f1->output_data.x->menubar_widget)) + f1 = NULL; +#endif /* USE_X_TOOLKIT */ } if (x_had_errors_p (FRAME_X_DISPLAY (*fp)))