ecore_win32: fix the raise of an Ecore Window overlapped by another window when click...
authorVincent Torri <vincent.torri@gmail.com>
Sun, 29 Jun 2014 15:24:54 +0000 (17:24 +0200)
committerCedric BAIL <c.bail@partner.samsung.com>
Sun, 29 Jun 2014 17:57:02 +0000 (19:57 +0200)
src/lib/ecore_win32/ecore_win32.c
src/lib/ecore_win32/ecore_win32_window.c

index 337bc5f..c6312a3 100644 (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);
index 432b3d9..7c7e516 100644 (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;
 }