Mercurial > emacs
changeset 14663:d9cafe0ebb7d
(lw_window_is_in_menubar) [USE_MOTIF]:
With Motif, the window WIN can be the menu bar widget itself.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 25 Feb 1996 06:59:59 +0000 |
parents | 9e8607589f03 |
children | f77b58df548c |
files | lwlib/lwlib.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lwlib/lwlib.c Sun Feb 25 06:44:48 1996 +0000 +++ b/lwlib/lwlib.c Sun Feb 25 06:59:59 1996 +0000 @@ -1345,9 +1345,10 @@ && XtWindow (menubar_widget) == win; #endif #if defined (USE_MOTIF) - && XtWindowToWidget (XtDisplay (menubar_widget), win) - && (XtParent (XtWindowToWidget (XtDisplay (menubar_widget), win)) - == menubar_widget); + && ((XtWindow (menubar_widget) == win) + || (XtWindowToWidget (XtDisplay (menubar_widget), win) + && (XtParent (XtWindowToWidget (XtDisplay (menubar_widget), win)) + == menubar_widget))); #endif }