]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change
authorEli Zaretskii <eliz@gnu.org>
Sat, 16 Jan 2021 13:02:48 +0000 (15:02 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 16 Jan 2021 13:02:48 +0000 (15:02 +0200)
* src/frame.c (Fset_mouse_position, Fset_mouse_pixel_position):
Don't compile the FRAME_MSDOS_P case on platforms other than
MSDOS, as that will never happen there.

src/frame.c

index 4d3d05ebbd37876342969e18f36cbff17601f2a7..599c4075f88d6363c125c75023e688ba0045e4a2 100644 (file)
@@ -2579,13 +2579,13 @@ before calling this function on it, like this.
       frame_set_mouse_position (XFRAME (frame), xval, yval);
 #endif /* HAVE_WINDOW_SYSTEM */
     }
+#ifdef MSDOS
   else if (FRAME_MSDOS_P (XFRAME (frame)))
     {
       Fselect_frame (frame, Qnil);
-#ifdef MSDOS
       mouse_moveto (xval, yval);
-#endif /* MSDOS */
     }
+#endif /* MSDOS */
   else
     {
       Fselect_frame (frame, Qnil);
@@ -2624,13 +2624,13 @@ before calling this function on it, like this.
       frame_set_mouse_pixel_position (XFRAME (frame), xval, yval);
 #endif /* HAVE_WINDOW_SYSTEM */
     }
+#ifdef MSDOS
   else if (FRAME_MSDOS_P (XFRAME (frame)))
     {
       Fselect_frame (frame, Qnil);
-#ifdef MSDOS
       mouse_moveto (xval, yval);
-#endif /* MSDOS */
     }
+#endif /* MSDOS */
   else
     {
       Fselect_frame (frame, Qnil);