Fix bug #7280, round title corner background
should be transparent not black in Xming/CygwinX (Colin Harrison)
This commit is contained in:
parent
a815b9b990
commit
a1a8e4f7f5
|
@ -394,6 +394,15 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
|
||||||
* currently being created.
|
* currently being created.
|
||||||
*/
|
*/
|
||||||
winReorderWindowsMultiWindow ();
|
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;
|
return 0;
|
||||||
|
|
||||||
case WM_INIT_SYS_MENU:
|
case WM_INIT_SYS_MENU:
|
||||||
|
|
Loading…
Reference in New Issue