From 5f306a9071d255c59ee7b9a4b87ecb9b0a6d84b4 Mon Sep 17 00:00:00 2001 From: fullstackjam Date: Sat, 16 May 2026 22:31:49 +0800 Subject: [PATCH] feat(macos): capture "Click wallpaper to show desktop" preference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a "Desktop & Stage Manager" category covering com.apple.WindowManager "EnableStandardClickToShowDesktop". Previously this key was outside the DefaultPreferences catalog, so `openboot snapshot` silently dropped it and `openboot install` couldn't write it, leaving the wallpaper-click behaviour unmanaged. Default is false (macOS Sonoma+ behaviour — wallpaper click only hides windows while Stage Manager is active). Set to true for the pre-Sonoma "always reveal desktop" behaviour. --- internal/macos/categories.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/macos/categories.go b/internal/macos/categories.go index 8614154..bf7c6a7 100644 --- a/internal/macos/categories.go +++ b/internal/macos/categories.go @@ -135,6 +135,15 @@ var DefaultCategories = []PrefCategory{ {"com.apple.screensaver", "askForPasswordDelay", "int", "0", "No delay before password required"}, }, }, + { + Name: "Desktop & Stage Manager", + Icon: "🪟", + Prefs: []Preference{ + // false → wallpaper click hides windows only while Stage Manager is active (macOS Sonoma+ default). + // true → wallpaper click always reveals desktop (pre-Sonoma behaviour). + {"com.apple.WindowManager", "EnableStandardClickToShowDesktop", "bool", "false", "Click wallpaper to show desktop only in Stage Manager"}, + }, + }, } // AllPrefsSelected returns a map with all default preferences set to true.