1 |
commit: a68e3c8d70ecaa38a20831d71a0514b2e622a1d3 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 13:57:47 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 13:58:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a68e3c8d |
7 |
|
8 |
x11-misc/sddm: remove unused patch |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
.../sddm/files/sddm-0.13.0-password-focus.patch | 109 --------------------- |
13 |
1 file changed, 109 deletions(-) |
14 |
|
15 |
diff --git a/x11-misc/sddm/files/sddm-0.13.0-password-focus.patch b/x11-misc/sddm/files/sddm-0.13.0-password-focus.patch |
16 |
deleted file mode 100644 |
17 |
index cc27669..00000000 |
18 |
--- a/x11-misc/sddm/files/sddm-0.13.0-password-focus.patch |
19 |
+++ /dev/null |
20 |
@@ -1,109 +0,0 @@ |
21 |
-From 6d5b36b28907b16280ff78995fef764bb0c573db Mon Sep 17 00:00:00 2001 |
22 |
-From: Pier Luigi Fiorini <pierluigi.fiorini@×××××.com> |
23 |
-Date: Sat, 16 Jan 2016 19:52:09 +0100 |
24 |
-Subject: [PATCH] Activate window for the primary screen |
25 |
- |
26 |
-Request activation for the view on the primary screen |
27 |
-otherwise text fields won't get focus. |
28 |
- |
29 |
-Closes #501 |
30 |
- |
31 |
-[ChangeLog][Greeter] Fix text field focus (issue #501) |
32 |
---- |
33 |
- src/greeter/GreeterApp.cpp | 31 ++++++++++++++++++++++++++++++- |
34 |
- src/greeter/GreeterApp.h | 4 +++- |
35 |
- 2 files changed, 33 insertions(+), 2 deletions(-) |
36 |
- |
37 |
-diff --git a/src/greeter/GreeterApp.cpp b/src/greeter/GreeterApp.cpp |
38 |
-index 06d13c5..8201a4e 100644 |
39 |
---- a/src/greeter/GreeterApp.cpp |
40 |
-+++ b/src/greeter/GreeterApp.cpp |
41 |
-@@ -1,5 +1,5 @@ |
42 |
- /*************************************************************************** |
43 |
--* Copyright (c) 2015 Pier Luigi Fiorini <pierluigi.fiorini@×××××.com> |
44 |
-+* Copyright (c) 2015-2016 Pier Luigi Fiorini <pierluigi.fiorini@×××××.com> |
45 |
- * Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@×××××.com> |
46 |
- * |
47 |
- * This program is free software; you can redistribute it and/or modify |
48 |
-@@ -36,6 +36,7 @@ |
49 |
- #include <QQmlContext> |
50 |
- #include <QQmlEngine> |
51 |
- #include <QDebug> |
52 |
-+#include <QTimer> |
53 |
- #include <QTranslator> |
54 |
- |
55 |
- #include <iostream> |
56 |
-@@ -135,6 +136,11 @@ namespace SDDM { |
57 |
- |
58 |
- // handle screens |
59 |
- connect(this, &GreeterApp::screenAdded, this, &GreeterApp::addViewForScreen); |
60 |
-+#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) |
61 |
-+ connect(this, &GreeterApp::primaryScreenChanged, this, [this](QScreen *) { |
62 |
-+ activatePrimary(); |
63 |
-+ }); |
64 |
-+#endif |
65 |
- } |
66 |
- |
67 |
- void GreeterApp::addViewForScreen(QScreen *screen) { |
68 |
-@@ -144,6 +150,7 @@ namespace SDDM { |
69 |
- view->setResizeMode(QQuickView::SizeRootObjectToView); |
70 |
- //view->setGeometry(QRect(QPoint(0, 0), screen->geometry().size())); |
71 |
- view->setGeometry(screen->geometry()); |
72 |
-+ m_views.append(view); |
73 |
- |
74 |
- // remove the view when the screen is removed, but we |
75 |
- // need to be careful here since Qt will move the view to |
76 |
-@@ -201,11 +208,33 @@ namespace SDDM { |
77 |
- // show |
78 |
- qDebug() << "Adding view for" << screen->name() << screen->geometry(); |
79 |
- view->show(); |
80 |
-+ |
81 |
-+ // activate windows for the primary screen to give focus to text fields |
82 |
-+ if (QGuiApplication::primaryScreen() == screen) |
83 |
-+ view->requestActivate(); |
84 |
- } |
85 |
- |
86 |
- void GreeterApp::removeViewForScreen(QQuickView *view) { |
87 |
-+ // screen is gone, remove the window |
88 |
- m_views.removeOne(view); |
89 |
- view->deleteLater(); |
90 |
-+ |
91 |
-+#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0) |
92 |
-+ // starting from Qt 5.6 we are notified when the primary screen is changed |
93 |
-+ // and we request activation for the view when we get the signal, with |
94 |
-+ // older version we iterate the views and request activation |
95 |
-+ activatePrimary(); |
96 |
-+#endif |
97 |
-+ } |
98 |
-+ |
99 |
-+ void GreeterApp::activatePrimary() { |
100 |
-+ // activate and give focus to the window assigned to the primary screen |
101 |
-+ Q_FOREACH (QQuickView *view, m_views) { |
102 |
-+ if (view->screen() == QGuiApplication::primaryScreen()) { |
103 |
-+ view->requestActivate(); |
104 |
-+ break; |
105 |
-+ } |
106 |
-+ } |
107 |
- } |
108 |
- } |
109 |
- |
110 |
-diff --git a/src/greeter/GreeterApp.h b/src/greeter/GreeterApp.h |
111 |
-index 91fc1a9..1ebd981 100644 |
112 |
---- a/src/greeter/GreeterApp.h |
113 |
-+++ b/src/greeter/GreeterApp.h |
114 |
-@@ -1,5 +1,5 @@ |
115 |
- /*************************************************************************** |
116 |
--* Copyright (c) 2015 Pier Luigi Fiorini <pierluigi.fiorini@×××××.com> |
117 |
-+* Copyright (c) 2015-2016 Pier Luigi Fiorini <pierluigi.fiorini@×××××.com> |
118 |
- * Copyright (c) 2013 Nikita Mikhaylov <nslqqq@×××××.com> |
119 |
- * |
120 |
- * This program is free software; you can redistribute it and/or modify |
121 |
-@@ -65,6 +65,8 @@ namespace SDDM { |
122 |
- UserModel *m_userModel { nullptr }; |
123 |
- GreeterProxy *m_proxy { nullptr }; |
124 |
- KeyboardModel *m_keyboard { nullptr }; |
125 |
-+ |
126 |
-+ void activatePrimary(); |
127 |
- }; |
128 |
- } |
129 |
- |