At the moment, the only way to tell is to check the package database (and assume it is the version in use..) or parse the server output and look for the tell-tale sign:
[245872.234] (II) DUMMY(0): get_constant_dpi_value() found property "dummy-constant-xdpi" with value=96 [245872.234] (II) DUMMY(0): get_constant_dpi_value() found property "dummy-constant-ydpi" with value=96 [245872.234] (II) DUMMY(0): mm(dpi 96x96)=677x423
Things like xvinfo
and glxinfo
don't help much either.
I don't think we can get that information through the X11 randr protocol either. The only place where the driverName
seems to be exported is in ProcDRI2Connect
.
We should add a root window property (a bit like what Xvfb does) and stick the version and patch level in there. Then we can look it up on the server and know what we're dealing with, and emit a warning if it looks outdated.
Code would probably look like this:
Atom prop = MakeAtom(pProp->name, strlen(pProp->name), TRUE); err = dixChangeWindowProperty(serverClient, pWin, prop, pProp->type, pProp->format, PropModeReplace, pProp->size, pProp->data, FALSE);
Improvement in r9770: we warn if the DPI is way off.
Milestone renamed
Milestone renamed
Best to work on #56 and get that solved.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/732