comparison src/xterm.c @ 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 f86c06451792
children f9d77d3fc85d
comparison
equal deleted inserted replaced
34007:39f8934ccd95 34008:8702e88a1669
7492 parent_{x,y} are invalid, but that's okay, because we'll 7492 parent_{x,y} are invalid, but that's okay, because we'll
7493 never use them in that case.) */ 7493 never use them in that case.) */
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)))
7500 f1 = 0; 7509 f1 = 0;
7501 7510