summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2017-03-07 22:16:24 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2017-03-08 08:59:59 +0100
commit85110c7dd9b58b8e991663b4f56b7cb1b31caea7 (patch)
treee65e97376f13f8edae5cdc9c3ef7c8cc40c2d459
parent8b9361e75c59b9e6bc44d9330798db40a02089b5 (diff)
ecore_evas: process mouse move even when there is no cursor
-rw-r--r--src/lib/ecore_evas/ecore_evas.c44
1 files changed, 23 insertions, 21 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index c560d5cb37..8b53aab3a9 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -3183,28 +3183,30 @@ _ecore_evas_mouse_move_process_internal(Ecore_Evas *ee,
3183 if (!pointer) 3183 if (!pointer)
3184 pointer = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_MOUSE); 3184 pointer = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_MOUSE);
3185 cursor = eina_hash_find(ee->prop.cursors, &pointer); 3185 cursor = eina_hash_find(ee->prop.cursors, &pointer);
3186 EINA_SAFETY_ON_NULL_RETURN(cursor); 3186 if (cursor)
3187 cursor->pos_x = x;
3188 cursor->pos_y = y;
3189 if (cursor->object)
3190 { 3187 {
3191 evas_object_show(cursor->object); 3188 cursor->pos_x = x;
3192 if (ee->rotation == 0) 3189 cursor->pos_y = y;
3193 evas_object_move(cursor->object, 3190 if (cursor->object)
3194 x - fx - cursor->hot.x, 3191 {
3195 y - fy - cursor->hot.y); 3192 evas_object_show(cursor->object);
3196 else if (ee->rotation == 90) 3193 if (ee->rotation == 0)
3197 evas_object_move(cursor->object, 3194 evas_object_move(cursor->object,
3198 ee->h + fw - y - fx - 1 - cursor->hot.x, 3195 x - fx - cursor->hot.x,
3199 x - fy - cursor->hot.y); 3196 y - fy - cursor->hot.y);
3200 else if (ee->rotation == 180) 3197 else if (ee->rotation == 90)
3201 evas_object_move(cursor->object, 3198 evas_object_move(cursor->object,
3202 ee->w + fw - x - fx - 1 - cursor->hot.x, 3199 ee->h + fw - y - fx - 1 - cursor->hot.x,
3203 ee->h + fh - y - fy - 1 - cursor->hot.y); 3200 x - fy - cursor->hot.y);
3204 else if (ee->rotation == 270) 3201 else if (ee->rotation == 180)
3205 evas_object_move(cursor->object, 3202 evas_object_move(cursor->object,
3206 y - fx - cursor->hot.x, 3203 ee->w + fw - x - fx - 1 - cursor->hot.x,
3207 ee->w + fh - x - fy - 1 - cursor->hot.y); 3204 ee->h + fh - y - fy - 1 - cursor->hot.y);
3205 else if (ee->rotation == 270)
3206 evas_object_move(cursor->object,
3207 y - fx - cursor->hot.x,
3208 ee->w + fh - x - fy - 1 - cursor->hot.y);
3209 }
3208 } 3210 }
3209 3211
3210 if (!feed) return; 3212 if (!feed) return;