Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Staging:A
plasma5-workspace
0002-X11-set-GDK_SCALE-try-2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-X11-set-GDK_SCALE-try-2.patch of Package plasma5-workspace
From e6afa76102a79d162323598c8738198fd631774c Mon Sep 17 00:00:00 2001 From: Peter Eszlari <peter.eszlari@gmail.com> Date: Thu, 18 Oct 2018 16:41:33 -0600 Subject: [PATCH 2/2] X11: set GDK_SCALE (try 2) Summary: BUG: 387849 Reviewers: davidedmundson, ngraham, #plasma, broulik Reviewed By: ngraham Subscribers: broulik, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D14697 --- startkde/startkde.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/startkde/startkde.cmake b/startkde/startkde.cmake index 844fae40..b4429a49 100644 --- a/startkde/startkde.cmake +++ b/startkde/startkde.cmake @@ -49,6 +49,7 @@ kcminputrc Mouse cursorTheme 'breeze_cursors' kcminputrc Mouse cursorSize '' ksplashrc KSplash Theme Breeze ksplashrc KSplash Engine KSplashQML +kdeglobals KScreen ScaleFactor '' kdeglobals KScreen ScreenScaleFactors '' kcmfonts General forceFontDPI 0 EOF @@ -94,6 +95,10 @@ fi if [ "$kdeglobals_kscreen_screenscalefactors" ]; then export QT_SCREEN_SCALE_FACTORS="$kdeglobals_kscreen_screenscalefactors" + if [ "$kdeglobals_kscreen_scalefactor" -eq "2" ] || [ "$kdeglobals_kscreen_scalefactor" -eq "3" ]; then + export GDK_SCALE=$kdeglobals_kscreen_scalefactor + export GDK_DPI_SCALE=`awk "BEGIN {print 1/$kdeglobals_kscreen_scalefactor}"` + fi fi #Manually disable auto scaling because we are scaling above #otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us -- 2.20.1
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