A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
fix(dock): ignore access denied when DPI awareness is set by manifest
tomas-lp1697db537d62
diff --git a/apps/dock/src/main.rs b/apps/dock/src/main.rsindex f72bbbe..a3049ef 100644--- a/apps/dock/src/main.rs+++ b/apps/dock/src/main.rs@@ -123,9 +123,10 @@ fn run_dock(recovered: bool) -> Result<()> {}fn initialize_dock() -> Result<()> {- // SAFETY: Sets DPI awareness and initializes the dispatcher before creating windows.+ // SAFETY: Sets DPI awareness (if not already locked by the application manifest)+ // and initializes the dispatcher before creating windows.let _queue = unsafe {- SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2)?;+ let _ = SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);// The compositor requires a dispatcher queue on its thread; this also// initializes COM, which icon extraction requires.CreateDispatcherQueueController(DispatcherQueueOptions {