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:
// 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()
}