X11: set fallback logical DPI to 96
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 18 Jun 2026 11:20:31 +0000 (14:20 +0300)
commit5f323fe78ce30b29efe7b42f34c250fe3f1f7e16
tree5a64ea19cf0e8a19ba2e5ed60a412ab47895c1eb
parent64db633b80b9afd0e7f55b293374727d3c4e237f
X11: set fallback logical DPI to 96

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit?id=7238123521708ec9
Last-Update: 2025-12-31

Returning physical DPI from logicalDpi() is problematic,
as explained in commit 77e04acb.

The most predictable implementation is to never return
physical DPI from QPlaformScreen::logicalDpi(). Other
platform plugins already do this, and this change
brings xcb in line with the rest of Qt.

We have the QPlatformScreen::physicalSize() API which
covers returning physical DPI (indirectly); Options
for selecting which one to use can be implemented on
top of these (see QT_USE_PHYSICAL_DPI).

Gbp-Pq: Name dont_use_physical_dpi.diff
src/plugins/platforms/xcb/qxcbscreen.cpp