From: duna.oh Date: Wed, 5 Jun 2024 09:08:49 +0000 (+0900) Subject: e_devicemgr: allow pointer warp when pointer constrainted X-Git-Tag: accepted/tizen/8.0/unified/20240610.163446~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F312406%2F2;p=platform%2Fupstream%2Fenlightenment.git e_devicemgr: allow pointer warp when pointer constrainted Even pointer (cursor) is not available, when pointer constrainted warp request is allowed. Change-Id: I1d20b29d49e609deeb0c8d5c27775b6ca371e211 --- 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);