Skip to content

Commit 7324f26

Browse files
authored
Merge pull request #1506 from mipedja/master
Restore dpiAwareness
2 parents 433126e + 00a57ea commit 7324f26

File tree

5 files changed

+39
-2
lines changed

5 files changed

+39
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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).

src/cmd/barrierc/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ set(sources
2121
if (WIN32)
2222
file(GLOB arch_headers "MSWindows*.h")
2323
file(GLOB arch_sources "MSWindows*.cpp")
24-
list(APPEND sources barrierc.rc)
24+
list(APPEND sources
25+
barrierc.rc
26+
barrierc.exe.manifest)
2527
elseif (APPLE)
2628
file(GLOB arch_headers "OSX*.h")
2729
file(GLOB arch_sources "OSX*.cpp")
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
4+
<security>
5+
<requestedPrivileges>
6+
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
7+
</requestedPrivileges>
8+
</security>
9+
</trustInfo>
10+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
11+
<windowsSettings>
12+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
13+
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
14+
</windowsSettings>
15+
</application>
16+
</assembly>

src/cmd/barriers/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ set(sources
2121
if (WIN32)
2222
file(GLOB arch_headers "MSWindows*.h")
2323
file(GLOB arch_sources "MSWindows*.cpp")
24-
list(APPEND sources barriers.rc)
24+
list(APPEND sources
25+
barriers.rc
26+
barriers.exe.manifest)
2527
elseif (APPLE)
2628
file(GLOB arch_headers "OSX*.h")
2729
file(GLOB arch_sources "OSX*.cpp")
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
4+
<security>
5+
<requestedPrivileges>
6+
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
7+
</requestedPrivileges>
8+
</security>
9+
</trustInfo>
10+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
11+
<windowsSettings>
12+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
13+
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
14+
</windowsSettings>
15+
</application>
16+
</assembly>

0 commit comments

Comments
 (0)