e_comp_wl: update pointer's position in screen coordinate in mouse_move cb 65/310365/1
authorduna.oh <duna.oh@samsung.com>
Thu, 25 Apr 2024 11:55:18 +0000 (20:55 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 26 Apr 2024 04:40:33 +0000 (13:40 +0900)
This commit resolves an issue where pointer's position becomes incorrect
when evas event has different values in canvas coordinate and output coordinate.

refer to commit: b2f7e52326fe43d7cc36b89ac2604574608d747d

Change-Id: Ic9c6d9c5c7a93a99f0ca8235b7c38635bfcc85ce

src/bin/e_comp_wl.c

index b9a4e10..8a76245 100644 (file)
@@ -1552,8 +1552,8 @@ _e_comp_wl_evas_cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *o
 
    ev = event;
 
-   e_comp->wl_comp_data->ptr.x = wl_fixed_from_int(ev->cur.canvas.x);
-   e_comp->wl_comp_data->ptr.y = wl_fixed_from_int(ev->cur.canvas.y);
+   e_comp->wl_comp_data->ptr.x = wl_fixed_from_int(ev->cur.output.x);
+   e_comp->wl_comp_data->ptr.y = wl_fixed_from_int(ev->cur.output.y);
 
    if (!(ec = data)) return;
    if (e_object_is_del(E_OBJECT(ec))) return;