From 232b08cef3ea700b88c089b4f71770f0e645d17a Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sat, 12 Dec 2015 13:41:04 +0100 Subject: [PATCH] Ecore_Win32: let cursors on the non-client area (the borders) be like the default ones After the support of the X11 cursors on Windows, the cursors were set for the whole window (even the borders). Now we let the system use the default cursors for the borders and we use the cursors set by the API for the client area only --- src/lib/ecore_win32/ecore_win32.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c index 069c596..1cdbed5 100644 --- a/src/lib/ecore_win32/ecore_win32.c +++ b/src/lib/ecore_win32/ecore_win32.c @@ -339,6 +339,18 @@ _ecore_win32_window_procedure(HWND window, Ecore_Win32_Window *w; INF("SetCursor"); + + /* + * Do not change the cursors on the non client area + * we are in the client area if and only if LOWORD(data_param) == 1 + */ + if (LOWORD(data_param) != 1) + return DefWindowProc(window, message, window_param, data_param); + + /* + * Otherwise, we use the cursors set by the API for the + *current window + */ w = (Ecore_Win32_Window *)GetWindowLongPtr(window, GWLP_USERDATA); if (w && w->cursor) { -- 2.7.4