xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 4 years ago

Last modified 6 months ago

#1526 new enhancement

per-monitor DPI handling with MS Windows clients

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: future
Component: platforms Version: trunk
Keywords: win32 Cc:

Description

Blocked by #56, X11 doesn't have per-monitor DPI data either.. so not very useful in the short term.

But we can get per-monitor DPI information:

$ from comtypes.client import CreateObject
o=CreateObject('WbemScripting.SWbemLocator')
s=o.ConnectServer('.', 'root\\cimv2')
res=s.ExecQuery('SELECT * FROM Win32_DesktopMonitor')
print([(x.Properties_['DeviceID'].Value, x.Properties_['PixelsPerXLogicalInch'].Value, x.Properties_['PixelsPerYLogicalInch'].Value,) for x in res])
[(u'DesktopMonitor1', 96, 96)]

Change History (1)

comment:1 Changed 6 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1526

Note: See TracTickets for help on using tickets.