summaryrefslogtreecommitdiff
path: root/nuttx/arch/sim/src/up_touchscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sim/src/up_touchscreen.c')
-rw-r--r--nuttx/arch/sim/src/up_touchscreen.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/nuttx/arch/sim/src/up_touchscreen.c b/nuttx/arch/sim/src/up_touchscreen.c
index 3765d9e6e..bc94d6056 100644
--- a/nuttx/arch/sim/src/up_touchscreen.c
+++ b/nuttx/arch/sim/src/up_touchscreen.c
@@ -661,15 +661,6 @@ int sim_tcinitialize(int minor)
priv->minor = minor;
- /* Start the X11 event loop */
-
- ret = up_x11eventloop();
- if (ret < 0)
- {
- idbg("Failed to start event loop: %d\n", ret);
- goto errout_with_priv;
- }
-
/* Register the device as an input device */
(void)snprintf(devname, DEV_NAMELEN, DEV_FORMAT, minor);
@@ -682,6 +673,10 @@ int sim_tcinitialize(int minor)
goto errout_with_priv;
}
+ /* Enable X11 event processing from the IDLE loop */
+
+ g_eventloop = 1;
+
/* And return success */
return OK;
@@ -731,7 +726,7 @@ void sim_tcuninitialize(void)
* done in close() using a reference count).
*/
- g_evloopactive = 0;
+ g_eventloop = 0;
/* Un-register the device*/