summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32
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/lib/ecore_win32
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/lib/ecore_win32')
-rw-r--r--src/lib/ecore_win32/Ecore_Win32.h2
-rw-r--r--src/lib/ecore_win32/ecore_win32_cursor.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecore_win32/Ecore_Win32.h b/src/lib/ecore_win32/Ecore_Win32.h
index 34e8596fdb..356200ff4a 100644
--- a/src/lib/ecore_win32/Ecore_Win32.h
+++ b/src/lib/ecore_win32/Ecore_Win32.h
@@ -675,6 +675,8 @@ EAPI const Ecore_Win32_Cursor *ecore_win32_cursor_x11_shaped_get(Ecore_Win32_Cur
675 675
676EAPI void ecore_win32_cursor_size_get(int *width, int *height); 676EAPI void ecore_win32_cursor_size_get(int *width, int *height);
677 677
678EAPI void ecore_win32_cursor_show(Eina_Bool show);
679
678 680
679 681
680/* Drag and drop */ 682/* Drag and drop */
diff --git a/src/lib/ecore_win32/ecore_win32_cursor.c b/src/lib/ecore_win32/ecore_win32_cursor.c
index cb95a53cc7..490e4f4ec9 100644
--- a/src/lib/ecore_win32/ecore_win32_cursor.c
+++ b/src/lib/ecore_win32/ecore_win32_cursor.c
@@ -355,6 +355,14 @@ ecore_win32_cursor_size_get(int *width, int *height)
355 if (*height) *height = GetSystemMetrics(SM_CYCURSOR); 355 if (*height) *height = GetSystemMetrics(SM_CYCURSOR);
356} 356}
357 357
358EAPI void
359ecore_win32_cursor_show(Eina_Bool show)
360{
361 INF("show cursor");
362
363 ShowCursor(show ? TRUE : FALSE);
364}
365
358/** 366/**
359 * @} 367 * @}
360 */ 368 */