XCB: Don't recalculate the DPI if we have a forced DPI setting
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 18 Dec 2013 22:18:03 +0000 (14:18 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 30 Dec 2013 08:17:47 +0000 (09:17 +0100)
commit5ee3d1e45621da51faaab08cf13d16f22b314309
tree18604c57bfd334cea9ae99414b50c43a3f0f121e
parent48ecb2d434d68abc39645b261cc9c1b0551a703e
XCB: Don't recalculate the DPI if we have a forced DPI setting

logicalDpi() already has the logic to check m_forcedDpi, so let's reuse
it. I hope it's not a problem that we send a signal that it changed when
nothing changed.

[ChangeLog][Platform Specific Changes][X11 / XCB]Fixed a bug that caused
Qt applications to think the screen DPI had changed when it had not,
after connecting or disconnecting monitors.

Task-number: QTBUG-32683
Change-Id: I45dd27de5109e65e7599915f11cfdb633a65a67c
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/plugins/platforms/xcb/qxcbscreen.cpp