diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-07-27 18:39:57 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-07-27 19:45:56 +0200 |
commit | e15789b6d8c953641e9181fcbfdb869f28b2b8f1 (patch) | |
tree | a706889c58a7f99b6aecf62888dcc614d32388cb /kde-plasma/kwin/files | |
parent | sys-cluster/kubectl: Version bump to 1.7.2 (diff) | |
download | gentoo-e15789b6d8c953641e9181fcbfdb869f28b2b8f1.tar.gz gentoo-e15789b6d8c953641e9181fcbfdb869f28b2b8f1.tar.bz2 gentoo-e15789b6d8c953641e9181fcbfdb869f28b2b8f1.zip |
kde-plasma/kwin: Backport possible fix for bugs on X11 like #616592
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'kde-plasma/kwin/files')
-rw-r--r-- | kde-plasma/kwin/files/kwin-5.10.4-globalaccel.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/kde-plasma/kwin/files/kwin-5.10.4-globalaccel.patch b/kde-plasma/kwin/files/kwin-5.10.4-globalaccel.patch new file mode 100644 index 000000000000..88d373c1dde7 --- /dev/null +++ b/kde-plasma/kwin/files/kwin-5.10.4-globalaccel.patch @@ -0,0 +1,45 @@ +From 4c996a57d4c01f092f9ed8f98a9f476c14c0c777 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= <mgraesslin@kde.org> +Date: Thu, 20 Jul 2017 19:14:07 +0200 +Subject: Call Platform::setupActionForGlobalAccel on the Client shortcut + +Summary: +Platform::setupActionForGlobalAccel is an important call on X11 platform. +Without the x11 timestamp doesn't get updated and calls in KWin might +fail - e.g. the activation of the Client which is supposed to happen. + +Test Plan: compiles + +Reviewers: #kwin, #plasma + +Subscribers: plasma-devel, kwin + +Tags: #kwin + +Differential Revision: https://phabricator.kde.org/D6802 +--- + useractions.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/useractions.cpp b/useractions.cpp +index 502be96..d92b027 100644 +--- a/useractions.cpp ++++ b/useractions.cpp +@@ -37,6 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. + #include "input.h" + #include "workspace.h" + #include "effects.h" ++#include "platform.h" + #include "screens.h" + #include "virtualdesktops.h" + #include "scripting/scripting.h" +@@ -1050,6 +1051,7 @@ void Workspace::clientShortcutUpdated(Client* c) + if (!c->shortcut().isEmpty()) { + if (action == NULL) { // new shortcut + action = new QAction(this); ++ kwinApp()->platform()->setupActionForGlobalAccel(action); + action->setProperty("componentName", QStringLiteral(KWIN_NAME)); + action->setObjectName(key); + action->setText(i18n("Activate Window (%1)", c->caption())); +-- +cgit v0.11.2 |