Blame SOURCES/qt-revert-QTBUG-15319-fix-shortcuts-with-secondary-Xkb.patch

e09033
From 0bbc2108aa2fe60c32f3fb01926e707cc29e0b81 Mon Sep 17 00:00:00 2001
e09033
From: Gatis Paeglis <gatis.paeglis@digia.com>
e09033
Date: Sat, 31 Aug 2013 21:22:47 +0200
e09033
Subject: [PATCH] Revert "QTBUG-15319: fix shortcuts with secondary Xkb
e09033
 layout."
e09033
e09033
The change which attempted to fix QTBUG-15319 broke keyboard
e09033
shortcuts for non latin keyboard layouts.
e09033
e09033
This patch reverts QTBUG-15319 (f45cdeda8) since it caused a
e09033
regression.
e09033
e09033
Task-number: QTBUG-32908
e09033
e09033
Change-Id: I47d7984fa7986d5218d1f3ff1fc36d2ec67c9ba7
e09033
Reviewed-by: David Faure <david.faure@kdab.com>
e09033
---
e09033
 src/gui/kernel/qkeymapper_x11.cpp | 5 +----
e09033
 1 file changed, 1 insertion(+), 4 deletions(-)
e09033
e09033
diff --git a/src/gui/kernel/qkeymapper_x11.cpp b/src/gui/kernel/qkeymapper_x11.cpp
e09033
index 005ff3f..7daa41d 100644
e09033
--- a/src/gui/kernel/qkeymapper_x11.cpp
e09033
+++ b/src/gui/kernel/qkeymapper_x11.cpp
e09033
@@ -282,12 +282,9 @@ QList<int> QKeyMapperPrivate::possibleKeysXKB(QKeyEvent *event)
e09033
 
e09033
     // first, translate key only using lock modifiers (there are no Qt equivalents for these, so we must
e09033
     // always use them when determining the baseKeySym)
e09033
-    // Note: the Xkb group to be used for the conversion keycode->keysym has to be given to
e09033
-    //       XkbLookupKeySym(). This information is contained in the bits 8 to 15 of xmodifiers.
e09033
-    //       See https://bugreports.qt-project.org/browse/QTBUG-15319 .
e09033
     KeySym baseKeySym;
e09033
     uint consumedModifiers;
e09033
-    if (!XkbLookupKeySym(X11->display, xkeycode, (xmodifiers & (0xff00 | LockMask | qt_num_lock_mask)),
e09033
+    if (!XkbLookupKeySym(X11->display, xkeycode, (xmodifiers & (LockMask | qt_num_lock_mask)),
e09033
                          &consumedModifiers, &baseKeySym))
e09033
         return QList<int>();
e09033
 
e09033
-- 
e09033
1.9.3