Add enforce.Guard port with X11 and no-op adapters

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-01 12:33:02 -04:00
parent d0e6893659
commit 7fdcae5d14
5 changed files with 108 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
//go:build !linux
package enforce
import "context"
// NewGuard returns a no-op guard on platforms without the X11 adapter.
func NewGuard() Guard { return noopGuard{} }
type noopGuard struct{}
func (noopGuard) MinimizeActive(context.Context) error { return nil }