diff src/gui-x.c @ 177:6075d714658b r20-3b15

Import from CVS: tag r20-3b15
author cvs
date Mon, 13 Aug 2007 09:51:16 +0200
parents 2d532a89d707
children 9ad43877534d
line wrap: on
line diff
--- a/src/gui-x.c	Mon Aug 13 09:50:16 2007 +0200
+++ b/src/gui-x.c	Mon Aug 13 09:51:16 2007 +0200
@@ -293,7 +293,11 @@
   /* This is the timestamp used for asserting focus so we need to get an
      up-to-date value event if no events has been dispatched to emacs
      */
+#if defined(HAVE_MENUBAR)
   DEVICE_X_MOUSE_TIMESTAMP (d) = x_focus_timestamp_really_sucks_fix_me_better;
+#else
+  DEVICE_X_MOUSE_TIMESTAMP (d) = DEVICE_X_GLOBAL_MOUSE_TIMESTAMP (d);
+#endif
   signal_special_Xt_user_event (frame, fn, arg);
 }