diff options
author | Vincent Torri <vincent dot torri at gmail dot com> | 2015-12-12 13:41:04 +0100 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-12-14 11:14:51 +0900 |
commit | 232b08cef3ea700b88c089b4f71770f0e645d17a (patch) | |
tree | dc3678d6061e193787d1ba94e50664eaa4b39950 | |
parent | 242278669f77dc3c65ad0f9d24dcd9a8d7f9c517 (diff) |
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
-rw-r--r-- | src/lib/ecore_win32/ecore_win32.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c index 069c59653d..1cdbed52d8 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, | |||
339 | Ecore_Win32_Window *w; | 339 | Ecore_Win32_Window *w; |
340 | 340 | ||
341 | INF("SetCursor"); | 341 | INF("SetCursor"); |
342 | |||
343 | /* | ||
344 | * Do not change the cursors on the non client area | ||
345 | * we are in the client area if and only if LOWORD(data_param) == 1 | ||
346 | */ | ||
347 | if (LOWORD(data_param) != 1) | ||
348 | return DefWindowProc(window, message, window_param, data_param); | ||
349 | |||
350 | /* | ||
351 | * Otherwise, we use the cursors set by the API for the | ||
352 | *current window | ||
353 | */ | ||
342 | w = (Ecore_Win32_Window *)GetWindowLongPtr(window, GWLP_USERDATA); | 354 | w = (Ecore_Win32_Window *)GetWindowLongPtr(window, GWLP_USERDATA); |
343 | if (w && w->cursor) | 355 | if (w && w->cursor) |
344 | { | 356 | { |