]> git.eshelyaron.com Git - emacs.git/commitdiff
(handle_one_xevent): Fix a C warning.
authorMichaël Cadilhac <michael.cadilhac@lrde.org>
Wed, 19 Sep 2007 10:02:13 +0000 (10:02 +0000)
committerMichaël Cadilhac <michael.cadilhac@lrde.org>
Wed, 19 Sep 2007 10:02:13 +0000 (10:02 +0000)
src/xterm.c

index fcf5e0b219370704b86e8fa9764e9fe3915fb9d7..68f5b266810a7b3bded3deb7aeff2abf695f7d02 100644 (file)
@@ -6641,7 +6641,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
       /* We may get an EnterNotify on the buttons in the toolbar.  In that
          case we moved out of any highlighted area and need to note this.  */
       if (!f && last_mouse_glyph_frame)
-        note_mouse_movement (last_mouse_glyph_frame, &event);
+        note_mouse_movement (last_mouse_glyph_frame, &event.xmotion);
 #endif
       goto OTHER;
 
@@ -6674,7 +6674,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
 #ifdef USE_GTK
       /* See comment in EnterNotify above */
       else if (last_mouse_glyph_frame)
-        note_mouse_movement (last_mouse_glyph_frame, &event);
+        note_mouse_movement (last_mouse_glyph_frame, &event.xmotion);
 #endif
       goto OTHER;