Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:thiagomacieira:branches:openSUSE:Factory
libqt5-qtbase
3001-Use-the-factor-function-for-getting-scale-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3001-Use-the-factor-function-for-getting-scale-factors.patch of Package libqt5-qtbase
From fa79dba963e915d4d1ee5ba2f07ef8df7823dab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= <morten.sorvig@qt.io> Date: Tue, 31 Mar 2020 14:25:59 +0200 Subject: [PATCH 3001/3009] Use the factor() function for getting scale factors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the code less dependent on (changing) high-dpi internals. Change-Id: Ifc7cb4aab1c1c70016ca86639edf5c9630999f9e Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit ff52d95e2979a4a87cc975172f1eace1a7a65661) --- src/plugins/platforms/xcb/qxcbwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 9e7e1a5572..245a565233 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -1387,7 +1387,7 @@ void QXcbWindow::propagateSizeHints() xcb_icccm_set_wm_normal_hints(xcb_connection(), m_window, &hints); - m_sizeHintsScaleFactor = QHighDpiScaling::scaleAndOrigin(screen()).factor; + m_sizeHintsScaleFactor = QHighDpiScaling::factor(screen()); } void QXcbWindow::requestActivateWindow() @@ -1779,7 +1779,7 @@ void QXcbWindow::handleConfigureNotifyEvent(const xcb_configure_notify_event_t * // will make the comparison later. QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->screen()); - if (!qFuzzyCompare(QHighDpiScaling::scaleAndOrigin(newScreen).factor, m_sizeHintsScaleFactor)) + if (!qFuzzyCompare(QHighDpiScaling::factor(newScreen), m_sizeHintsScaleFactor)) propagateSizeHints(); // Send the synthetic expose event on resize only when the window is shrinked, -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor