fix the borderless_set function by removing the frame around the window
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 29 Apr 2009 17:50:44 +0000 (17:50 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 29 Apr 2009 17:50:44 +0000 (17:50 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@40462 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_win32/ecore_win32_window.c

index 53138f5..df1482d 100644 (file)
@@ -734,7 +734,7 @@ ecore_win32_window_borderless_set(Ecore_Win32_Window *window,
              return;
           }
         SetLastError(0);
-        if (!SetWindowLongPtr(w, GWL_STYLE, style & ~WS_CAPTION) && (GetLastError() != 0))
+        if (!SetWindowLongPtr(w, GWL_STYLE, style & ~(WS_CAPTION | WS_THICKFRAME)) && (GetLastError() != 0))
           {
              EINA_ERROR_PERR("SetWindowLongPtr() failed\n");
              return;
@@ -747,7 +747,7 @@ ecore_win32_window_borderless_set(Ecore_Win32_Window *window,
              EINA_ERROR_PERR("GetWindowRect() failed\n");
              return;
           }
-        style |= WS_CAPTION;
+        style |= WS_CAPTION | WS_THICKFRAME;
         if (!AdjustWindowRect (&rect, style, FALSE))
           {
              EINA_ERROR_PERR("AdjustWindowRect() failed\n");