summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2016-11-21 17:05:18 -0200
committerBruno Dilly <bdilly@profusion.mobi>2016-12-20 18:34:39 -0200
commit2e527851cfdfaa6efc0e261cea978e5cf11afac2 (patch)
tree0f1be6d8a96e7ae1ba203c2eb69cb60a51f58412 /src/lib/ecore_evas
parent133b4fa65bc92baa3775e178e5e19521da0d7f78 (diff)
Ecore Evas VNC: Add support for ecore_evas_pointer_device_xy_get().
This commit adds the support to fetch the mouse position of a VNC client.
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 43ec72a6ad..b493383b43 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -2393,7 +2393,19 @@ ecore_evas_pointer_device_xy_get(const Ecore_Evas *ee,
2393 if (x) *x = 0; 2393 if (x) *x = 0;
2394 if (y) *y = 0; 2394 if (y) *y = 0;
2395 ECORE_EVAS_CHECK(ee); 2395 ECORE_EVAS_CHECK(ee);
2396 if (ee->engine.func->fn_pointer_device_xy_get) 2396 if (ee->vnc_server)
2397 {
2398 Eina_Module *mod;
2399 void (*pointer_xy_get)(const void *, const Efl_Input_Device *, Evas_Coord *, Evas_Coord *y);
2400
2401 mod = _ecore_evas_vnc_server_module_load();
2402 EINA_SAFETY_ON_NULL_RETURN(mod);
2403
2404 pointer_xy_get = eina_module_symbol_get(mod, "ecore_evas_vnc_server_pointer_xy_get");
2405 EINA_SAFETY_ON_NULL_RETURN(pointer_xy_get);
2406 pointer_xy_get(ee->vnc_server, pointer, x, y);
2407 }
2408 else if (ee->engine.func->fn_pointer_device_xy_get)
2397 ee->engine.func->fn_pointer_device_xy_get(ee, pointer, x, y); 2409 ee->engine.func->fn_pointer_device_xy_get(ee, pointer, x, y);
2398 } 2410 }
2399} 2411}