summaryrefslogtreecommitdiff
path: root/lwlib/lwlib.c
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
commitc17d59fcd2ba238f4929755788585f5538190744 (patch)
tree37eafabce9aee369020604a99925d2d6d96f69f2 /lwlib/lwlib.c
parente9874cee56a1bb9cd976acb615aaad5ad02c91b5 (diff)
downloademacs-c17d59fcd2ba238f4929755788585f5538190744.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/lwlib.c')
-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
}