Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: enable `uiAccess` in manifest

Lars Bergerb48e369f29b7
diff --git a/resources/glazewm.manifest b/resources/glazewm.manifest
index f2708ecb..da2bfb17 100644
--- a/resources/glazewm.manifest
+++ b/resources/glazewm.manifest
@@ -1,5 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
+ <!--
+ Enable UIAccess, which grants privilege to set the foreground window
+ and to set the position of elevated windows.
+
+ Ref: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/user-account-control-only-elevate-uiaccess-applications-that-are-installed-in-secure-locations
+ -->
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level="asInvoker" uiAccess="true" />
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+
+ <!-- Declare support for per-monitor DPI awareness. -->
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>