aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-03-01 19:15:46 +0800
committerPo Lu2022-03-01 19:15:46 +0800
commitf980eed4c1b49393fb46f04538f2a9046cdfab2b (patch)
treedcbdbc42366eea01b9ab6126bf39dacad99c9b82 /src
parentad0fb40ae6921a265c6d21ed542cf6144eee0c51 (diff)
downloademacs-f980eed4c1b49393fb46f04538f2a9046cdfab2b.tar.gz
emacs-f980eed4c1b49393fb46f04538f2a9046cdfab2b.zip
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 'src')
-rw-r--r--src/xfns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 65218b3fc07..09bad715025 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3803,8 +3803,13 @@ x_window (struct frame *f, long window_prompting)
3803 FRAME_DISPLAY_INFO (f)->Xatom_wm_protocols, 3803 FRAME_DISPLAY_INFO (f)->Xatom_wm_protocols,
3804 XA_ATOM, 32, PropModeAppend, NULL, 0); 3804 XA_ATOM, 32, PropModeAppend, NULL, 0);
3805 3805
3806#if !defined USE_MOTIF || !defined HAVE_XINPUT2
3806 /* Make all the standard events reach the Emacs frame. */ 3807 /* Make all the standard events reach the Emacs frame. */
3807 attributes.event_mask = STANDARD_EVENT_SET; 3808 attributes.event_mask = STANDARD_EVENT_SET;
3809#else
3810 /* This is used for Motif menus. */
3811 attributes.event_mask = STANDARD_EVENT_SET | PropertyChangeMask;
3812#endif
3808 3813
3809#ifdef HAVE_X_I18N 3814#ifdef HAVE_X_I18N
3810 if (FRAME_XIC (f)) 3815 if (FRAME_XIC (f))