aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index fb80221e15b..e085fa1ace5 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1728,6 +1728,15 @@ create_and_show_popup_menu (struct frame *f, widget_value *first_wv,
1728 1728
1729 /* Display the menu. */ 1729 /* Display the menu. */
1730 lw_popup_menu (menu, &dummy); 1730 lw_popup_menu (menu, &dummy);
1731
1732#if defined HAVE_XINPUT2 && defined USE_MOTIF
1733 /* This is needed to prevent XI_Enter events that set an implicit
1734 focus from being sent. */
1735 if (dpyinfo->supports_xi2)
1736 XSetInputFocus (XtDisplay (menu), XtWindow (menu),
1737 RevertToParent, CurrentTime);
1738#endif
1739
1731 popup_activated_flag = 1; 1740 popup_activated_flag = 1;
1732 1741
1733#if defined HAVE_XINPUT2 && !defined USE_MOTIF 1742#if defined HAVE_XINPUT2 && !defined USE_MOTIF