Restore dpiAwareness

Fixes regression from #304
Fixes #1462, possibly others.
This commit is contained in:
mipedja 2022-01-06 22:28:36 -08:00
parent 433126e7a1
commit 00a57ea972
5 changed files with 39 additions and 2 deletions

View File

@ -0,0 +1 @@
Fixed a regression in 2.4.0 that caused Barrier to not support scaling other than 100% (https://github.com/debauchee/barrier/issues/1462).

View File

@ -21,7 +21,9 @@ set(sources
if (WIN32) if (WIN32)
file(GLOB arch_headers "MSWindows*.h") file(GLOB arch_headers "MSWindows*.h")
file(GLOB arch_sources "MSWindows*.cpp") file(GLOB arch_sources "MSWindows*.cpp")
list(APPEND sources barrierc.rc) list(APPEND sources
barrierc.rc
barrierc.exe.manifest)
elseif (APPLE) elseif (APPLE)
file(GLOB arch_headers "OSX*.h") file(GLOB arch_headers "OSX*.h")
file(GLOB arch_sources "OSX*.cpp") file(GLOB arch_sources "OSX*.cpp")

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
</windowsSettings>
</application>
</assembly>

View File

@ -21,7 +21,9 @@ set(sources
if (WIN32) if (WIN32)
file(GLOB arch_headers "MSWindows*.h") file(GLOB arch_headers "MSWindows*.h")
file(GLOB arch_sources "MSWindows*.cpp") file(GLOB arch_sources "MSWindows*.cpp")
list(APPEND sources barriers.rc) list(APPEND sources
barriers.rc
barriers.exe.manifest)
elseif (APPLE) elseif (APPLE)
file(GLOB arch_headers "OSX*.h") file(GLOB arch_headers "OSX*.h")
file(GLOB arch_sources "OSX*.cpp") file(GLOB arch_sources "OSX*.cpp")

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
</windowsSettings>
</application>
</assembly>