From b6c7933f16603b8a8071b38cefe7e6f717a3f38f Mon Sep 17 00:00:00 2001 From: Felix Martin Date: Tue, 2 Jun 2026 12:36:12 -0400 Subject: [PATCH] Align Windows guard ctx param and doc with X11 guard --- internal/enforce/windows.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/enforce/windows.go b/internal/enforce/windows.go index 5dc4444..36ac3e5 100644 --- a/internal/enforce/windows.go +++ b/internal/enforce/windows.go @@ -15,7 +15,8 @@ type windowsGuard struct{} // MinimizeActive minimizes the current foreground window. It is best-effort: // with nothing focused it does nothing and returns nil. Stateless and per-call, -// mirroring the short-lived X11 connection model. -func (windowsGuard) MinimizeActive(context.Context) error { +// with no connection or shared state to manage. ShowWindow does not report a +// minimize failure, so this always returns nil today. +func (windowsGuard) MinimizeActive(_ context.Context) error { return winapi.MinimizeForeground() }