e_devicemgr_inputgen: remove unnecessary ecore_thread_main_loop_begin() and end() 67/320867/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 25 Nov 2024 04:16:47 +0000 (13:16 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 25 Nov 2024 05:56:35 +0000 (14:56 +0900)
Change-Id: I52b65852c39feaa801738e66efd2b0bec59d66a4
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/bin/inputmgr/e_devicemgr_inputgen.c

index cf1cf0a0d8596e6502840ea40cd313750b021864..f9d4ac7bb2146126aa18afa1205d6d51855ca25b 100644 (file)
@@ -208,7 +208,6 @@ _e_devicemgr_inputgen_mouse_button_event(Eina_Bool state, int x, int y, int butt
    e->multi.root.x = e->x;
    e->multi.root.y = e->y;
 
-   ecore_thread_main_loop_begin();
    e->dev = ecore_device_ref(e_input_evdev_ecore_device_get(identifier, ECORE_DEVICE_CLASS_MOUSE));
    e->buttons = buttons;
 
@@ -219,8 +218,6 @@ _e_devicemgr_inputgen_mouse_button_event(Eina_Bool state, int x, int y, int butt
    else
      ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, e, _e_devicemgr_inputgen_mouse_button_event_free, NULL);
 
-   ecore_thread_main_loop_end();
-
    return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NONE;
 }
 
@@ -265,13 +262,11 @@ _e_devicemgr_inputgen_mouse_move_event(int x, int y, char *identifier)
    e->multi.root.x = e->x;
    e->multi.root.y = e->y;
 
-   ecore_thread_main_loop_begin();
    e->dev = ecore_device_ref(e_input_evdev_ecore_device_get(identifier, ECORE_DEVICE_CLASS_MOUSE));
 
    DMDBG("Generate mouse move event: (%d, %d)\n", e->x, e->y);
 
    ecore_event_add(ECORE_EVENT_MOUSE_MOVE, e, _e_devicemgr_inputgen_mouse_move_event_free, NULL);
-   ecore_thread_main_loop_end();
 
    return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NONE;
 }
@@ -313,8 +308,6 @@ _e_devicemgr_inputgen_mouse_wheel_event(unsigned int type, int value, E_Devicemg
      e->direction = 1;
    e->z = value;
 
-   ecore_thread_main_loop_begin();
-
    if (device)
      {
         if (!e_devicemgr_detent_is_detent(device->name))
@@ -326,8 +319,6 @@ _e_devicemgr_inputgen_mouse_wheel_event(unsigned int type, int value, E_Devicemg
 
    ecore_event_add(ECORE_EVENT_MOUSE_WHEEL, e, _e_devicemgr_inputgen_mouse_wheel_event_free, NULL);
 
-   ecore_thread_main_loop_end();
-
    return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NONE;
 }
 
@@ -451,7 +442,6 @@ _e_devicemgr_inputgen_touch_event(uint32_t type, uint32_t x, uint32_t y, uint32_
    e->multi.root.x = e->x;
    e->multi.root.y = e->y;
 
-   ecore_thread_main_loop_begin();
    e->dev = ecore_device_ref(e_input_evdev_ecore_device_get(device?device->identifier:NULL, ECORE_DEVICE_CLASS_TOUCH));
    e->buttons = 1;
 
@@ -462,8 +452,6 @@ _e_devicemgr_inputgen_touch_event(uint32_t type, uint32_t x, uint32_t y, uint32_
    else
      ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, e, _e_devicemgr_inputgen_mouse_button_event_free, NULL);
 
-   ecore_thread_main_loop_end();
-
    return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NONE;
 }
 
@@ -512,14 +500,11 @@ _e_devicemgr_inputgen_touch_update_event(uint32_t x, uint32_t y, uint32_t finger
    e->multi.root.x = e->x;
    e->multi.root.y = e->y;
 
-   ecore_thread_main_loop_begin();
-
    e->dev = ecore_device_ref(e_input_evdev_ecore_device_get(device?device->identifier:NULL, ECORE_DEVICE_CLASS_TOUCH));
 
    DMDBG("Generate touch move event: device: %d (%d, %d)\n", e->multi.device, e->x, e->y);
 
    ecore_event_add(ECORE_EVENT_MOUSE_MOVE, e, _e_devicemgr_inputgen_mouse_move_event_free, NULL);
-   ecore_thread_main_loop_end();
 
    return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NONE;
 }