Align Windows guard ctx param and doc with X11 guard

This commit is contained in:
2026-06-02 12:36:12 -04:00
parent f37e295166
commit b6c7933f16
+3 -2
View File
@@ -15,7 +15,8 @@ type windowsGuard struct{}
// MinimizeActive minimizes the current foreground window. It is best-effort: // MinimizeActive minimizes the current foreground window. It is best-effort:
// with nothing focused it does nothing and returns nil. Stateless and per-call, // with nothing focused it does nothing and returns nil. Stateless and per-call,
// mirroring the short-lived X11 connection model. // with no connection or shared state to manage. ShowWindow does not report a
func (windowsGuard) MinimizeActive(context.Context) error { // minimize failure, so this always returns nil today.
func (windowsGuard) MinimizeActive(_ context.Context) error {
return winapi.MinimizeForeground() return winapi.MinimizeForeground()
} }