Fix Xrandr DPI calculation for NVidia TwinView.
authorRobert Griebl <robert.griebl@nokia.com>
Thu, 20 Jan 2011 13:47:37 +0000 (14:47 +0100)
committerRobert Griebl <robert.griebl@nokia.com>
Mon, 24 Jan 2011 13:12:48 +0000 (14:12 +0100)
commit4810b587a65d81f8f90646efd09cadeb1276a756
treebd39bad9b570d074d5046f9c18a7c36cb99fb5cf
parent4f9a318d639c4e7e09e56751d31608fb39d472af
Fix Xrandr DPI calculation for NVidia TwinView.

The problem is that a Xinerama 'screen' (as used by QDesktopWidget) does NOT
correspond to a Xrandr 'screen', so we have to convert via the root windows.

Reviewed-by: Ralf Engels
src/gui/util/qscroller.cpp