e_comp_wl: update pointer's position from evas event's output coordinate system 54/302054/1
authorduna.oh <duna.oh@samsung.com>
Wed, 29 Nov 2023 07:04:34 +0000 (16:04 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 30 Nov 2023 05:54:54 +0000 (14:54 +0900)
This commit resolves an issue where pointer's position becomes incorrect
when evas event has different values in canvas coordinate and output coordinate.

Change-Id: I3fae21d34b50644c88d64f7085e3d17140299865

src/bin/e_comp_wl.c

index 60f79ed..64e583a 100644 (file)
@@ -1228,8 +1228,8 @@ _e_comp_wl_evas_cb_mouse_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
 
    ev = event;
 
-   e_comp_wl->ptr.x = wl_fixed_from_int(ev->canvas.x);
-   e_comp_wl->ptr.y = wl_fixed_from_int(ev->canvas.y);
+   e_comp_wl->ptr.x = wl_fixed_from_int(ev->output.x);
+   e_comp_wl->ptr.y = wl_fixed_from_int(ev->output.y);
 
    if (!(ec = data)) return;
    if (e_object_is_del(E_OBJECT(ec))) return;