summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c
index e1df083275..9260c18c60 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c
@@ -592,7 +592,7 @@ _ecore_evas_object_cursor_del(void *data, Evas *e __UNUSED__, Evas_Object *obj _
592void 592void
593_ecore_evas_wl_common_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y) 593_ecore_evas_wl_common_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y)
594{ 594{
595 int x, y; 595 int x, y, fx, fy;
596 596
597 if (ee->prop.cursor.object) evas_object_del(ee->prop.cursor.object); 597 if (ee->prop.cursor.object) evas_object_del(ee->prop.cursor.object);
598 598
@@ -614,10 +614,11 @@ _ecore_evas_wl_common_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int la
614 ecore_wl_window_pointer_set(ee->engine.wl.win, NULL, 0, 0); 614 ecore_wl_window_pointer_set(ee->engine.wl.win, NULL, 0, 0);
615 615
616 evas_pointer_output_xy_get(ee->evas, &x, &y); 616 evas_pointer_output_xy_get(ee->evas, &x, &y);
617 evas_output_framespace_get(ee->evas, &fx, &fy, NULL, NULL);
617 evas_object_layer_set(ee->prop.cursor.object, ee->prop.cursor.layer); 618 evas_object_layer_set(ee->prop.cursor.object, ee->prop.cursor.layer);
618 evas_object_move(ee->prop.cursor.object, 619 evas_object_move(ee->prop.cursor.object,
619 x - ee->prop.cursor.hot.x, 620 x - fx - ee->prop.cursor.hot.x,
620 y - ee->prop.cursor.hot.y); 621 y - fy - ee->prop.cursor.hot.y);
621 evas_object_pass_events_set(ee->prop.cursor.object, 1); 622 evas_object_pass_events_set(ee->prop.cursor.object, 1);
622 if (evas_pointer_inside_get(ee->evas)) 623 if (evas_pointer_inside_get(ee->evas))
623 evas_object_show(ee->prop.cursor.object); 624 evas_object_show(ee->prop.cursor.object);