From 3dfc3035640f9e0d4456715b93c1052c396f436d Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 29 Jun 2014 17:24:54 +0200 Subject: [PATCH] ecore_win32: fix the raise of an Ecore Window overlapped by another window when clicking on the title bar --- src/lib/ecore_win32/ecore_win32.c | 2 ++ src/lib/ecore_win32/ecore_win32_window.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c index 337bc5f..c6312a3 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, w->drag.px = GET_X_LPARAM(data_param); w->drag.py = GET_Y_LPARAM(data_param); w->drag.dragging = 1; + if ((DWORD)window_param == HTCAPTION) + ecore_win32_window_raise(w); return 0; } 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 432b3d9..7c7e516 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, w->iconified = 0; w->fullscreen = 0; + w->drag.x = x; + w->drag.y = y; + w->drag.w = rect.right - rect.left; + w->drag.h = rect.bottom - rect.top; + return w; } -- 2.7.4