summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2017-07-07 16:54:34 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-07-09 13:34:09 +0200
commitbdb62b6bbecb8beb6ef64c74a708ee1f8e384be7 (patch)
treefc34dacc64b44500175596f138b8b5e30ef211a4 /src/modules/ecore_evas
parent804ce5f5148b2a12da1c2c1f3dc873dbbb1e06d5 (diff)
Add ecore_win32_cursor_show() API and ecore_evas_win32_cursor_(un)set() functions
This fixes double mouse cursor in elm entries on Windows (for example) @feature @fix
Diffstat (limited to 'src/modules/ecore_evas')
-rw-r--r--src/modules/ecore_evas/engines/win32/ecore_evas_win32.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
index 2cdc1b5..2f8a684 100644
--- a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
+++ b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
@@ -909,6 +909,22 @@ _ecore_evas_win32_size_step_set(Ecore_Evas *ee, int width, int height)
909} 909}
910 910
911static void 911static void
912_ecore_evas_win32_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj,
913 int layer EINA_UNUSED,
914 int hot_x EINA_UNUSED,
915 int hot_y EINA_UNUSED)
916{
917 if (obj != _ecore_evas_default_cursor_image_get(ee))
918 ecore_win32_cursor_show(EINA_FALSE);
919}
920
921static void
922_ecore_evas_win32_object_cursor_unset(Ecore_Evas *ee)
923{
924 ecore_win32_cursor_show(EINA_TRUE);
925}
926
927static void
912_ecore_evas_win32_focus_set(Ecore_Evas *ee, Eina_Bool on EINA_UNUSED) 928_ecore_evas_win32_focus_set(Ecore_Evas *ee, Eina_Bool on EINA_UNUSED)
913{ 929{
914 ecore_win32_window_focus((Ecore_Win32_Window *)ee->prop.window); 930 ecore_win32_window_focus((Ecore_Win32_Window *)ee->prop.window);
@@ -1212,8 +1228,8 @@ static Ecore_Evas_Engine_Func _ecore_win32_engine_func =
1212 _ecore_evas_win32_size_max_set, 1228 _ecore_evas_win32_size_max_set,
1213 _ecore_evas_win32_size_base_set, 1229 _ecore_evas_win32_size_base_set,
1214 _ecore_evas_win32_size_step_set, 1230 _ecore_evas_win32_size_step_set,
1215 NULL, 1231 _ecore_evas_win32_object_cursor_set,
1216 NULL, 1232 _ecore_evas_win32_object_cursor_unset,
1217 NULL, /* _ecore_evas_x_layer_set */ 1233 NULL, /* _ecore_evas_x_layer_set */
1218 _ecore_evas_win32_focus_set, 1234 _ecore_evas_win32_focus_set,
1219 _ecore_evas_win32_iconified_set, 1235 _ecore_evas_win32_iconified_set,