Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:ownCloud:desktop:client-2.2.1
owncloud-client
highdpi-6ccd9e8.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File highdpi-6ccd9e8.patch of Package owncloud-client
From 6ccd9e872d53f5a7b3ce2d82be0c0e2d99c013f7 Mon Sep 17 00:00:00 2001 From: Olivier Goffart <ogoffart@woboq.com> Date: Thu, 2 Jun 2016 17:57:10 +0200 Subject: [PATCH] GUI: don't force the environment variable for high DPI on linux. Setting the Environment variable only for owncloud makes in inconsistant with other Qt application running at the same time. The users can still set it themself for the whole desktop if they wish. Addresses #4840 --- src/gui/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 2b395d5..d575344 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -47,16 +47,19 @@ int main(int argc, char **argv) { Q_INIT_RESOURCE(client); -#ifndef Q_OS_MAC +#ifdef Q_OS_WIN // If the font size ratio is set on Windows, we need to // enable the auto pixelRatio in Qt since we don't // want to use sizes relative to the font size everywhere. // This is automatic on OS X, but opt-in on Windows and Linux // https://doc-snapshots.qt.io/qt5-5.6/highdpi.html#qt-support + // We do not define it on linux so the behaviour is kept the same + // as other Qt apps in the desktop environment. (which may or may + // not set this envoronment variable) #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); #endif -#endif // !Q_OS_MAC +#endif // !Q_OS_WIN #ifdef Q_OS_MAC Mac::CocoaInitializer cocoaInit; // RIIA
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