summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-03-01 19:15:46 +0800
committerPo Lu <luangruo@yahoo.com>2022-03-01 19:15:46 +0800
commitf980eed4c1b49393fb46f04538f2a9046cdfab2b (patch)
treedcbdbc42366eea01b9ab6126bf39dacad99c9b82 /lwlib
parentad0fb40ae6921a265c6d21ed542cf6144eee0c51 (diff)
downloademacs-f980eed4c1b49393fb46f04538f2a9046cdfab2b.tar.gz
Fix crashes and other bugs on LessTif
* lwlib/lwlib-Xm.c (make_menu_in_widget): XmIsRowColumn is broken on the latest LessTif release, so avoid that here. * src/xfns.c (x_window): Add PropertyChangeMask which LessTif doesn't do itself.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/lwlib-Xm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 1b8675c0eda..a1114d42556 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -496,9 +496,11 @@ make_menu_in_widget (widget_instance* instance,
;
children = (Widget*)(void*)XtMalloc (num_children * sizeof (Widget));
+#ifndef LESSTIF_VERSION
/* WIDGET should be a RowColumn. */
if (!XmIsRowColumn (widget))
emacs_abort ();
+#endif
/* Determine whether WIDGET is a menu bar. */
type = -1;