summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-12 12:08:32 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-12 12:08:25 -0400
commit2fabed32555d411b8c293556fb56abb90d4ae000 (patch)
tree37274127ebb6e1a675d322cc3e1610ed80c1e911 /src/lib/ecore_evas/ecore_evas.c
parent34999448c21e660a09581bd8933e055a44fd3132 (diff)
ecore-evas: add function for unsetting a specific seat's cursor
@feature
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 7c68126157..16a58c2b61 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -1858,16 +1858,17 @@ ecore_evas_cursor_get(const Ecore_Evas *ee, Evas_Object **obj, int *layer, int *
1858} 1858}
1859 1859
1860EAPI Evas_Object * 1860EAPI Evas_Object *
1861ecore_evas_cursor_unset(Ecore_Evas *ee) 1861ecore_evas_cursor_device_unset(Ecore_Evas *ee, Efl_Input_Device *pointer)
1862{ 1862{
1863 Ecore_Evas_Cursor *cursor; 1863 Ecore_Evas_Cursor *cursor = NULL;
1864 Efl_Input_Device *pointer;
1865 Evas_Object *obj; 1864 Evas_Object *obj;
1866 1865
1867 ECORE_EVAS_CHECK(ee, NULL); 1866 ECORE_EVAS_CHECK(ee, NULL);
1868 1867
1869 pointer = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_MOUSE); 1868 if (!pointer)
1870 cursor = eina_hash_find(ee->prop.cursors, &pointer); 1869 pointer = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_MOUSE);
1870 if (pointer)
1871 cursor = eina_hash_find(ee->prop.cursors, &pointer);
1871 EINA_SAFETY_ON_NULL_RETURN_VAL(cursor, NULL); 1872 EINA_SAFETY_ON_NULL_RETURN_VAL(cursor, NULL);
1872 obj = cursor->object; 1873 obj = cursor->object;
1873 if (ee->engine.func->fn_object_cursor_unset) 1874 if (ee->engine.func->fn_object_cursor_unset)
@@ -1880,6 +1881,12 @@ ecore_evas_cursor_unset(Ecore_Evas *ee)
1880 return obj; 1881 return obj;
1881} 1882}
1882 1883
1884EAPI Evas_Object *
1885ecore_evas_cursor_unset(Ecore_Evas *ee)
1886{
1887 return ecore_evas_cursor_device_unset(ee, NULL);
1888}
1889
1883EAPI void 1890EAPI void
1884ecore_evas_layer_set(Ecore_Evas *ee, int layer) 1891ecore_evas_layer_set(Ecore_Evas *ee, int layer)
1885{ 1892{