summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-02-25 06:59:59 +0000
committerRichard M. Stallman <rms@gnu.org>1996-02-25 06:59:59 +0000
commit7f1e49d0a3fe4fb195db7199bf54788a1df9dacf (patch)
treeebc84331d9e6f4997b94dfd26d86a4862a95bfe4 /lwlib
parent6e3f9260e712ab34b613c7527f9114eec3e793ff (diff)
downloademacs-7f1e49d0a3fe4fb195db7199bf54788a1df9dacf.tar.gz
(lw_window_is_in_menubar) [USE_MOTIF]:
With Motif, the window WIN can be the menu bar widget itself.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/lwlib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c
index 6569b38da32..f71f6ef6d57 100644
--- a/lwlib/lwlib.c
+++ b/lwlib/lwlib.c
@@ -1345,9 +1345,10 @@ lw_window_is_in_menubar (win, menubar_widget)
&& 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
}