summaryrefslogtreecommitdiff
path: root/hw/xwin
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2006-08-18 09:08:12 +0100
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2006-08-18 09:08:12 +0100
commita1a8e4f7f5917f537eb3dd51d3d6fa3e129236ce (patch)
treeedd6836c5e410b7256c22031d4f60f3cca85459d /hw/xwin
parenta815b9b990e068f02d9cbba2b17f2cc3a30a9310 (diff)
Fix bug #7280, round title corner background
should be transparent not black in Xming/CygwinX (Colin Harrison)
Diffstat (limited to 'hw/xwin')
-rw-r--r--hw/xwin/winmultiwindowwndproc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/xwin/winmultiwindowwndproc.c b/hw/xwin/winmultiwindowwndproc.c
index 045adbac6..e35974468 100644
--- a/hw/xwin/winmultiwindowwndproc.c
+++ b/hw/xwin/winmultiwindowwndproc.c
@@ -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: