Opened 5 years ago
Last modified 17 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)]
Note: See
TracTickets for help on using
tickets.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1526