From 0027ca57fc6a2c919139d4e82ba0935a6b5aa161 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 16 Sep 2026 16:31:34 +0200 Subject: [PATCH] Fix hint not clearing: InvalidateRect must request background erase (True) so the class brush repaints black --- black_screen_dim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/black_screen_dim.py b/black_screen_dim.py index d6f6e9f..a7e9bc1 100644 --- a/black_screen_dim.py +++ b/black_screen_dim.py @@ -259,7 +259,7 @@ if sys.platform == "win32": _hint_active = False user32.KillTimer(hwnd, 1) for h in _hwnds: - user32.InvalidateRect(h, None, False) + user32.InvalidateRect(h, None, True) return 0 if msg in (WM_DESTROY, WM_CLOSE): user32.PostQuitMessage(0)