Commit fe086ddb authored by Alexander Volkov's avatar Alexander Volkov
Browse files

xcb: Fix updating physical screen size


X server may return an empty physical screen size, for example
on VNC, Xephyr or some not very well supported hardware.
In this case it's possible to use the size of the virtual desktop,
but until now it was done only in the QXcbScreen constructor.

Move it to QXcbScreen::updateGeometry() and calculate physical screen
size using the DPI of the virtual desktop.

Task-number: QTBUG-45564
Change-Id: I6b757818a2fcefdd7b2c0aa31b840a88d625d6ae
Reviewed-by: default avatarDaniel Vrátil <dvratil@redhat.com>
Reviewed-by: default avatarPaul Olav Tvete <paul.tvete@theqtcompany.com>
Showing with 19 additions and 7 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment