* src/xmenu.c (create_and_show_popup_menu)
(server_timestamp_predicate): Disable timestamp code on builds
using the Lucid menu bar widget.
popup_activated_flag = 0;
}
-#ifdef HAVE_XINPUT2
+#if defined HAVE_XINPUT2 && defined USE_MOTIF
static Bool
server_timestamp_predicate (Display *display,
XEvent *xevent,
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
#endif
}
+#ifdef USE_MOTIF
if (dpyinfo->supports_xi2)
{
/* Dispatch a PropertyNotify to Xt with the current server time.
XtDispatchEvent (&property_dummy);
}
+#endif
if (dpyinfo->supports_xi2)
XUngrabServer (dpyinfo->display);