From: duna.oh Date: Thu, 25 Apr 2024 11:55:18 +0000 (+0900) Subject: e_comp_wl: update pointer's position in screen coordinate in mouse_move cb X-Git-Tag: accepted/tizen/8.0/unified/20240502.163834~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36f7499dc9512a83e9c24e946761bfc276d6b71f;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl: update pointer's position in screen coordinate in mouse_move cb 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 --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 73f500aec9..68edd4a4e7 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1516,8 +1516,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;