This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit c9a27f00c677dfa8913827d6255b68f9d7527c67
Author: Alan Carvalho de Assis <[email protected]>
AuthorDate: Wed Aug 12 11:30:10 2026 -0300

    arch/sim: Fix #ifdef/#else on x11 event loop
    
    As suggested by Xiang Xiao, let's fix the identation
    
    Signed-off-by: Alan C. Assis <[email protected]>
---
 arch/sim/src/sim/posix/sim_x11eventloop.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/sim/src/sim/posix/sim_x11eventloop.c 
b/arch/sim/src/sim/posix/sim_x11eventloop.c
index 94553a42a61..196892960a3 100644
--- a/arch/sim/src/sim/posix/sim_x11eventloop.c
+++ b/arch/sim/src/sim/posix/sim_x11eventloop.c
@@ -179,16 +179,16 @@ void sim_x11events(void)
 
       switch (event.type)
         {
-          #ifdef CONFIG_SIM_KEYBOARD
+#ifdef CONFIG_SIM_KEYBOARD
           case KeyPress:
             sim_kbdevent(XLookupKeysym(&event.xkey, 0), true);
             break;
           case KeyRelease:
             sim_kbdevent(XLookupKeysym(&event.xkey, 0), false);
             break;
-          #endif
+#endif
 
-          #ifdef CONFIG_SIM_TOUCHSCREEN
+#ifdef CONFIG_SIM_TOUCHSCREEN
           case MotionNotify : /* Enabled by ButtonMotionMask */
             {
               sim_buttonevent(event.xmotion.x, event.xmotion.y,
@@ -204,9 +204,9 @@ void sim_x11events(void)
                                           event.xbutton.button));
             }
             break;
-          #endif
+#endif
 
-          #ifdef CONFIG_SIM_MOUSE
+#ifdef CONFIG_SIM_MOUSE
           case MotionNotify : /* Enabled by PointerMotionMask */
             {
               sim_mouseevent(event.xmotion.x, event.xmotion.y,
@@ -244,7 +244,7 @@ void sim_x11events(void)
                              wheel);
             }
             break;
-          #endif
+#endif
 
           default:
             break;

Reply via email to