forked from enlightenment/efl
ecore_win32: fix the raise of an Ecore Window overlapped by another window when clicking on the title bar
This commit is contained in:
parent
42888dacac
commit
3dfc303564
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue