changeset 34008:8702e88a1669

(XTmouse_position) [USE_X_TOOLKIT]: When the mouse is over the menu bar widget, say it's not on the frame.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 29 Nov 2000 16:42:40 +0000
parents 39f8934ccd95
children 8091ba37be87
files src/xterm.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Wed Nov 29 15:42:47 2000 +0000
+++ b/src/xterm.c	Wed Nov 29 16:42:40 2000 +0000
@@ -7494,6 +7494,15 @@
 
 	    /* 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)))