diff options
| author | Po Lu | 2022-03-01 14:06:52 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-01 14:09:22 +0800 |
| commit | 6b8808ab8ce21e9367e0dd930d4d074e5b21ff6b (patch) | |
| tree | 44c6408034ffed62038295369fa95c5a7075460d /src | |
| parent | cd44d45d92964b574c567b3f083f32d417120249 (diff) | |
| download | emacs-6b8808ab8ce21e9367e0dd930d4d074e5b21ff6b.tar.gz emacs-6b8808ab8ce21e9367e0dd930d4d074e5b21ff6b.zip | |
Disable some code that interferes with menus on Lucid
* src/xmenu.c (create_and_show_popup_menu)
(server_timestamp_predicate): Disable timestamp code on builds
using the Lucid menu bar widget.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index a8185d8346e..e483c8f73b0 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1514,7 +1514,7 @@ pop_down_menu (int id) | |||
| 1514 | popup_activated_flag = 0; | 1514 | popup_activated_flag = 0; |
| 1515 | } | 1515 | } |
| 1516 | 1516 | ||
| 1517 | #ifdef HAVE_XINPUT2 | 1517 | #if defined HAVE_XINPUT2 && defined USE_MOTIF |
| 1518 | static Bool | 1518 | static Bool |
| 1519 | server_timestamp_predicate (Display *display, | 1519 | server_timestamp_predicate (Display *display, |
| 1520 | XEvent *xevent, | 1520 | XEvent *xevent, |
| @@ -1546,7 +1546,7 @@ create_and_show_popup_menu (struct frame *f, widget_value *first_wv, | |||
| 1546 | LWLIB_ID menu_id; | 1546 | LWLIB_ID menu_id; |
| 1547 | Widget menu; | 1547 | Widget menu; |
| 1548 | Window dummy_window; | 1548 | Window dummy_window; |
| 1549 | #ifdef HAVE_XINPUT2 | 1549 | #if defined HAVE_XINPUT2 && defined USE_MOTIF |
| 1550 | XEvent property_dummy; | 1550 | XEvent property_dummy; |
| 1551 | Atom property_atom; | 1551 | Atom property_atom; |
| 1552 | #endif | 1552 | #endif |
| @@ -1643,6 +1643,7 @@ create_and_show_popup_menu (struct frame *f, widget_value *first_wv, | |||
| 1643 | #endif | 1643 | #endif |
| 1644 | } | 1644 | } |
| 1645 | 1645 | ||
| 1646 | #ifdef USE_MOTIF | ||
| 1646 | if (dpyinfo->supports_xi2) | 1647 | if (dpyinfo->supports_xi2) |
| 1647 | { | 1648 | { |
| 1648 | /* Dispatch a PropertyNotify to Xt with the current server time. | 1649 | /* Dispatch a PropertyNotify to Xt with the current server time. |
| @@ -1661,6 +1662,7 @@ create_and_show_popup_menu (struct frame *f, widget_value *first_wv, | |||
| 1661 | 1662 | ||
| 1662 | XtDispatchEvent (&property_dummy); | 1663 | XtDispatchEvent (&property_dummy); |
| 1663 | } | 1664 | } |
| 1665 | #endif | ||
| 1664 | 1666 | ||
| 1665 | if (dpyinfo->supports_xi2) | 1667 | if (dpyinfo->supports_xi2) |
| 1666 | XUngrabServer (dpyinfo->display); | 1668 | XUngrabServer (dpyinfo->display); |