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
This commit is contained in:
Vincent Torri 2015-12-12 13:41:04 +01:00 committed by Jean-Philippe Andre
parent 242278669f
commit 232b08cef3
1 changed files with 12 additions and 0 deletions

View File

@ -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)
{