ecore_win32: fix the raise of an Ecore Window overlapped by another window when clicking on the title bar

This commit is contained in:
Vincent Torri 2014-06-29 17:24:54 +02:00 committed by Cedric BAIL
parent 42888dacac
commit 3dfc303564
2 changed files with 7 additions and 0 deletions

View File

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

View File

@ -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;
}