summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2014-06-29 17:24:54 +0200
committerCedric BAIL <c.bail@partner.samsung.com>2014-06-29 19:57:02 +0200
commit3dfc3035640f9e0d4456715b93c1052c396f436d (patch)
tree4f95ae53cc68e774276d1a4c89a0093f22a0d181 /src/lib/ecore_win32
parent42888dacac8839a1b0a16e993204487be5ef0671 (diff)
ecore_win32: fix the raise of an Ecore Window overlapped by another window when clicking on the title bar
Diffstat (limited to 'src/lib/ecore_win32')
-rw-r--r--src/lib/ecore_win32/ecore_win32.c2
-rw-r--r--src/lib/ecore_win32/ecore_win32_window.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c
index 337bc5f384..c6312a34b9 100644
--- a/src/lib/ecore_win32/ecore_win32.c
+++ b/src/lib/ecore_win32/ecore_win32.c
@@ -425,6 +425,8 @@ _ecore_win32_window_procedure(HWND window,
425 w->drag.px = GET_X_LPARAM(data_param); 425 w->drag.px = GET_X_LPARAM(data_param);
426 w->drag.py = GET_Y_LPARAM(data_param); 426 w->drag.py = GET_Y_LPARAM(data_param);
427 w->drag.dragging = 1; 427 w->drag.dragging = 1;
428 if ((DWORD)window_param == HTCAPTION)
429 ecore_win32_window_raise(w);
428 return 0; 430 return 0;
429 } 431 }
430 return DefWindowProc(window, message, window_param, data_param); 432 return DefWindowProc(window, message, window_param, data_param);
diff --git a/src/lib/ecore_win32/ecore_win32_window.c b/src/lib/ecore_win32/ecore_win32_window.c
index 432b3d94b0..7c7e5162b9 100644
--- a/src/lib/ecore_win32/ecore_win32_window.c
+++ b/src/lib/ecore_win32/ecore_win32_window.c
@@ -139,6 +139,11 @@ ecore_win32_window_internal_new(Ecore_Win32_Window *parent,
139 w->iconified = 0; 139 w->iconified = 0;
140 w->fullscreen = 0; 140 w->fullscreen = 0;
141 141
142 w->drag.x = x;
143 w->drag.y = y;
144 w->drag.w = rect.right - rect.left;
145 w->drag.h = rect.bottom - rect.top;
146
142 return w; 147 return w;
143} 148}
144 149