Align Windows guard ctx param and doc with X11 guard
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user