e_devicemgr: allow pointer warp when pointer constrainted 06/312406/2
authorduna.oh <duna.oh@samsung.com>
Wed, 5 Jun 2024 09:08:49 +0000 (18:08 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Jun 2024 06:49:46 +0000 (06:49 +0000)
Even pointer (cursor) is not available, when pointer constrainted
warp request is allowed.

Change-Id: I1d20b29d49e609deeb0c8d5c27775b6ca371e211

src/bin/e_devicemgr_input.c

index 94d2af6..7e1df09 100644 (file)
@@ -67,7 +67,10 @@ e_devicemgr_input_pointer_warp(struct wl_client *client, struct wl_resource *res
    if ((!e_config->show_cursor) || (!e_comp_wl->ptr.enabled))
      {
         DMERR("Pointer is not available");
-        return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NO_POINTER_AVAILABLE;
+        if (!e_comp_wl_input_pointer_constraint_activated_get())
+          return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NO_POINTER_AVAILABLE;
+        else
+          DMINF("Pointer Contstraint activated. warp allowed. show_cursor(%d)", e_config->show_cursor);
      }
 
    new_x = wl_fixed_to_int(x);