summaryrefslogtreecommitdiff
path: root/common_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'common_windows.c')
-rw-r--r--common_windows.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common_windows.c b/common_windows.c
index d4db842..a8a2444 100644
--- a/common_windows.c
+++ b/common_windows.c
@@ -112,10 +112,9 @@ void paintControlBackground(HWND hwnd, HDC dc)
return;
if (GetClassNameW(parent, classname, 128) == 0)
xpanic("error getting name of focused window class in paintControlBackground()", GetLastError());
- // skip container and groupboxes
- if (_wcsicmp(classname, containerclass) != 0) // container
- if (_wcsicmp(classname, L"button") != 0) // groupbox
- break;
+ // skip groupboxes; they're (supposed to be) transparent
+ if (_wcsicmp(classname, L"button") != 0)
+ break;
}
if (GetWindowRect(hwnd, &r) == 0)
xpanic("error getting control's window rect in paintControlBackground()", GetLastError());