Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=f2b5c006c552f6cfbdf42b21ba6634b77e1a1ea8

commit f2b5c006c552f6cfbdf42b21ba6634b77e1a1ea8
Author: DeX77 <[email protected]>
Date:   Fri Sep 30 21:39:43 2016 +0200

sddm-0.14.0-4-x86_64

* relbump
+ add EnableHiDPI option
* move sddm tp tty12 again

diff --git a/source/x11/sddm/FrugalBuild b/source/x11/sddm/FrugalBuild
index 48e50ad..a30d60b 100644
--- a/source/x11/sddm/FrugalBuild
+++ b/source/x11/sddm/FrugalBuild
@@ -5,7 +5,7 @@

pkgname=sddm
pkgver=0.14.0
-pkgrel=3
+pkgrel=4
pkgdesc='QML based X11 display manager'
archs=('i686' 'x86_64')
groups=('x11')
@@ -28,10 +28,13 @@ provides=("${conflicts[@]}" 'liblightdm-qt')
Finclude github cmake
backup=('etc/sddm.conf')
options+=('scriptlet')
-source+=(sddm.conf X-scripts-stop-using-files-from-users-HOME.patch)
+source+=(sddm.conf \
+       X-scripts-stop-using-files-from-users-HOME.patch \
+       add_highdpi_option.patch )
sha1sums=('f5a490936024ef991ef37569562f8954157c7557' \
-          'b207f7e3a1ca5c6bc60c60e6e3d3fac4f5a5af0d' \
-          'dc3228f5682fb881afa53e8b4e6b76a3dd32dafe')
+          'c29fc983f33899f358dfc6fc11f83201d8c62a7f' \
+          'dc3228f5682fb881afa53e8b4e6b76a3dd32dafe' \
+          'b82ff6305c59cc6c7a076452bbfb7c9386641a3c')

build() {
CMake_build
diff --git a/source/x11/sddm/add_highdpi_option.patch 
b/source/x11/sddm/add_highdpi_option.patch
new file mode 100644
index 0000000..0a2fc68
--- /dev/null
+++ b/source/x11/sddm/add_highdpi_option.patch
@@ -0,0 +1,49 @@
+From 3441112487e477e146f1ffd532725edcd285eba6 Mon Sep 17 00:00:00 2001
+From: Stany MARCEL <[email protected]>
+Date: Thu, 15 Sep 2016 17:47:25 +0200
+Subject: [PATCH] Add a config option to enable high-DPI scaling (#701)
+
+The new EnableHiDPI boolean option permits to enable or not the
+activation of Qt::AA_EnableHighDpiScaling attribute.
+
+The default is enabled.
+
+[ChangeLog][Greeter] Enable Qt's automatic high dpi scaling based on
+configuration
+
+Signed-off-by: Stany MARCEL <[email protected]>
+---
+ src/common/Configuration.h | 1 +
+ src/greeter/GreeterApp.cpp | 7 ++++++-
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/src/common/Configuration.h b/src/common/Configuration.h
+index f790343..f2e7ae1 100644
+--- a/src/common/Configuration.h
++++ b/src/common/Configuration.h
+@@ -42,6 +42,7 @@ namespace SDDM {
+         Entry(Numlock,             NumState,    NUM_NONE,                     
                  _S("Initial NumLock state. Can be on, off or none.\n"
+                                                                               
                     "If property is set to none, numlock won't be changed\n"
+                                                                               
                     "NOTE: Currently ignored if autologin is enabled."));
++        Entry(EnableHiDPI,         bool,        true,                         
                  _S("Enable Qt's automatic high-DPI scaling"));
+         Entry(InputMethod,         QString,     QString(),                    
                  _S("Input method module"));
+         //  Name   Entries (but it's a regular class again)
+         Section(Theme,
+diff --git a/src/greeter/GreeterApp.cpp b/src/greeter/GreeterApp.cpp
+index 9ec66e1..1926b30 100644
+--- a/src/greeter/GreeterApp.cpp
++++ b/src/greeter/GreeterApp.cpp
+@@ -242,7 +242,12 @@ int main(int argc, char **argv) {
+     qInstallMessageHandler(SDDM::GreeterMessageHandler);
+
+     // HiDPI
+-    QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
++    if (SDDM::mainConfig.EnableHiDPI.get()) {
++        qDebug() << "High-DPI autoscaling Enabled";
++        QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
++    } else {
++        qDebug() << "High-DPI autoscaling Not Enabled";
++    }
+
+     QStringList arguments;
+
diff --git a/source/x11/sddm/sddm.conf b/source/x11/sddm/sddm.conf
index 575373b..cab0e48 100644
--- a/source/x11/sddm/sddm.conf
+++ b/source/x11/sddm/sddm.conf
@@ -13,6 +13,8 @@ User=
# Halt command
HaltCommand=/usr/bin/systemctl poweroff

+EnableHiDPI=false
+
# Input method module
InputMethod=

@@ -91,7 +93,7 @@ DisplayCommand=/usr/share/sddm/scripts/Xsetup
DisplayStopCommand=/usr/share/sddm/scripts/Xstop

# The lowest virtual terminal number that will be used.
-MinimumVT=1
+MinimumVT=12

# Arguments passed to the X server invocation
ServerArguments=-nolisten tcp
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to