xpra icon
Bug tracker and wiki

Opened 3 years 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:


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
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 (0)

Note: See TracTickets for help on using tickets.