Fix bug #7280, round title corner background

should be transparent not black in Xming/CygwinX
(Colin Harrison)
This commit is contained in:
Alan Hourihane 2006-08-18 09:08:12 +01:00
parent a815b9b990
commit a1a8e4f7f5

View File

@ -394,6 +394,15 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
* currently being created.
*/
winReorderWindowsMultiWindow ();
/* Fix a 'round title bar corner background should be transparent not black' problem when first painted */
RECT rWindow;
HRGN hRgnWindow;
GetWindowRect(hwnd, &rWindow);
hRgnWindow = CreateRectRgnIndirect(&rWindow);
SetWindowRgn (hwnd, hRgnWindow, TRUE);
DeleteObject(hRgnWindow);
return 0;
case WM_INIT_SYS_MENU: