From 6ee3c5eb2e50c1e8cd8aa414b7e565cfd960cb1c Mon Sep 17 00:00:00 2001 From: "duna.oh" Date: Wed, 5 Jun 2024 18:08:49 +0900 Subject: [PATCH] e_devicemgr: allow pointer warp when pointer constrainted Even pointer (cursor) is not available, when pointer constrainted warp request is allowed. Change-Id: I1d20b29d49e609deeb0c8d5c27775b6ca371e211 --- src/bin/e_devicemgr_input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/e_devicemgr_input.c b/src/bin/e_devicemgr_input.c index 94d2af623f..7e1df099d5 100644 --- a/src/bin/e_devicemgr_input.c +++ b/src/bin/e_devicemgr_input.c @@ -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); -- 2.34.1