aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_layer.c
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2016-10-21 10:25:41 -0200
committerBruno Dilly <bdilly@profusion.mobi>2016-12-02 09:57:50 -0200
commit484dae76e675318a579e90ac05d4371acc1f8891 (patch)
treeec41e13d5fc110083a7c37bd75258b1227aab61f /src/lib/evas/canvas/evas_layer.c
parentEcore Input Evas: Ecore_Input_Last should contain the Evas device. (diff)
downloadefl-484dae76e675318a579e90ac05d4371acc1f8891.tar.gz
Evas: Add support for per mouse pointer mode/properties.
This patch introduces the possibility to set the pointer mode and query other properties like current position per pointer device. The old API will still works, however it will only act on the default seat.
Diffstat (limited to 'src/lib/evas/canvas/evas_layer.c')
-rw-r--r--src/lib/evas/canvas/evas_layer.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/lib/evas/canvas/evas_layer.c b/src/lib/evas/canvas/evas_layer.c
index 3504012ac6..3c0a23ecc0 100644
--- a/src/lib/evas/canvas/evas_layer.c
+++ b/src/lib/evas/canvas/evas_layer.c
@@ -248,18 +248,11 @@ _efl_canvas_object_efl_gfx_stack_layer_set(Eo *eo_obj,
return;
}
evas_object_change(eo_obj, obj);
- if (!obj->is_smart)
+ if (!obj->is_smart && obj->cur->visible)
{
- if (evas_object_is_in_output_rect(eo_obj, obj,
- obj->layer->evas->pointer.x,
- obj->layer->evas->pointer.y, 1, 1) &&
- obj->cur->visible)
- if (eina_list_data_find(obj->layer->evas->pointer.object.in, obj))
- evas_event_feed_mouse_move(obj->layer->evas->evas,
- obj->layer->evas->pointer.x,
- obj->layer->evas->pointer.y,
- obj->layer->evas->last_timestamp,
- NULL);
+ _evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas, eo_obj, obj,
+ 1, 1, EINA_TRUE,
+ NULL);
}
else
{