Reuse previous hack to get display size.
TODO: remove dependency to xdypinfo.