emacs-diffs
[Top][All Lists]
Advanced

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

master c55b7b8 2/2: Fix last change


From: Eli Zaretskii
Subject: master c55b7b8 2/2: Fix last change
Date: Sat, 16 Jan 2021 08:03:47 -0500 (EST)

branch: master
commit c55b7b8e1f46612849a25f035578a46fa3fe343b
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix last change
    
    * 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 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/frame.c b/src/frame.c
index 4d3d05e..599c407 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -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);



reply via email to

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