emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6b8808ab8c: Disable some code that interferes with menus on Lucid


From: Po Lu
Subject: master 6b8808ab8c: Disable some code that interferes with menus on Lucid
Date: Tue, 1 Mar 2022 01:09:32 -0500 (EST)

branch: master
commit 6b8808ab8ce21e9367e0dd930d4d074e5b21ff6b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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.
---
 src/xmenu.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/xmenu.c b/src/xmenu.c
index a8185d8346..e483c8f73b 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1514,7 +1514,7 @@ pop_down_menu (int id)
   popup_activated_flag = 0;
 }
 
-#ifdef HAVE_XINPUT2
+#if defined HAVE_XINPUT2 && defined USE_MOTIF
 static Bool
 server_timestamp_predicate (Display *display,
                            XEvent *xevent,
@@ -1546,7 +1546,7 @@ create_and_show_popup_menu (struct frame *f, widget_value 
*first_wv,
   LWLIB_ID menu_id;
   Widget menu;
   Window dummy_window;
-#ifdef HAVE_XINPUT2
+#if defined HAVE_XINPUT2 && defined USE_MOTIF
   XEvent property_dummy;
   Atom property_atom;
 #endif
@@ -1643,6 +1643,7 @@ create_and_show_popup_menu (struct frame *f, widget_value 
*first_wv,
 #endif
     }
 
+#ifdef USE_MOTIF
   if (dpyinfo->supports_xi2)
     {
       /* 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,
 
       XtDispatchEvent (&property_dummy);
     }
+#endif
 
   if (dpyinfo->supports_xi2)
     XUngrabServer (dpyinfo->display);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]