e_devicemgr: fix conditional for allowing pointer_warp
authorduna.oh <duna.oh@samsung.com>
Tue, 17 Oct 2023 04:13:55 +0000 (13:13 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 18 Oct 2023 02:48:56 +0000 (11:48 +0900)
Change-Id: I665e3fbfd0859cabcaa6044d804212e48066fd9e

src/bin/e_devicemgr_input.c

index 9484d07..ae54bc8 100644 (file)
@@ -47,9 +47,9 @@ e_devicemgr_input_pointer_warp(struct wl_client *client, struct wl_resource *res
         return TIZEN_INPUT_DEVICE_MANAGER_ERROR_INVALID_SURFACE;
      }
 
-   if (e_pointer_is_hidden(e_comp->pointer))
+   if ((!e_config->show_cursor) || (!e_comp_wl->ptr.enabled))
      {
-        DMERR("Pointer is hidden");
+        DMERR("Pointer is not available");
         return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NO_POINTER_AVAILABLE;
      }