[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-workspace] shell: Disable devicePixelRatio in PlasmaShell
From:       David Edmundson <kde () davidedmundson ! co ! uk>
Date:       2015-07-26 11:02:36
Message-ID: E1ZJJhU-0006Q5-Jp () scm ! kde ! org
[Download RAW message or body]

Git commit 558e123d66f839ceb1ed32e25d04000f6cb38f5a by David Edmundson.
Committed on 26/07/2015 at 11:01.
Pushed by davidedmundson into branch 'master'.

Disable devicePixelRatio in PlasmaShell

Devive pixel ratio has some problems in plasmashell currently.

In particular:
- dialog continually expands (347951)
- Text element text is screwed (QTBUG-42606)
- Panel struts (350614)

It's also not a /huge/ deal as we do our own thing anyway, so the
experience is better to just turn off this scaling.

I've had this patch in my local code since forever.We should revert this
when all 3 are fixed.

CCBUG: 347951
REVIEW: 124463

M  +9    -0    shell/main.cpp

http://commits.kde.org/plasma-workspace/558e123d66f839ceb1ed32e25d04000f6cb=
38f5a

diff --git a/shell/main.cpp b/shell/main.cpp
index 5c5a5ca..cec4a69 100644
--- a/shell/main.cpp
+++ b/shell/main.cpp
@@ -39,6 +39,15 @@ void noMessageOutput(QtMsgType type, const char *msg)
 =

 int main(int argc, char *argv[])
 {
+//    Devive pixel ratio has some problems in plasmashell currently.
+//     - dialog continually expands (347951)
+//     - Text element text is screwed (QTBUG-42606)
+//     - Panel struts (350614)
+//  This variable should possibly be removed when all are fixed
+
+    qunsetenv("QT_DEVICE_PIXEL_RATIO");
+
+
     QQuickWindow::setDefaultAlphaBuffer(true);
 =

     KLocalizedString::setApplicationDomain("plasmashell");
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic