public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kdelibs/files/
@ 2017-12-02  8:35 Andreas Sturmlechner
  0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2017-12-02  8:35 UTC (permalink / raw
  To: gentoo-commits

commit:     e7f6713a59374f782dc43d3f42329e245b167bcf
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Dec  2 08:15:26 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 08:34:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7f6713a

kde-frameworks/kdelibs: remove unused patch

 .../kdelibs-4.3.80-kdeui_util_kkeyserver_mac.patch | 46 ----------------------
 1 file changed, 46 deletions(-)

diff --git a/kde-frameworks/kdelibs/files/kdelibs-4.3.80-kdeui_util_kkeyserver_mac.patch b/kde-frameworks/kdelibs/files/kdelibs-4.3.80-kdeui_util_kkeyserver_mac.patch
deleted file mode 100644
index aca4fe41246..00000000000
--- a/kde-frameworks/kdelibs/files/kdelibs-4.3.80-kdeui_util_kkeyserver_mac.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-diff -purN kdeui/util/kkeyserver_mac.cpp kdeui/util/kkeyserver_mac.cpp
---- a/kdeui/util/kkeyserver_mac.cpp	2009-12-14 17:05:26.284881642 -0500
-+++ b/kdeui/util/kkeyserver_mac.cpp	2009-12-14 17:11:23.393094384 -0500
-@@ -68,7 +68,7 @@ namespace KKeyServer {
- #ifdef QT_MAC_USE_COCOA
-     static TISInputSourceRef lastLayout = 0;
- #else
--    static KeyboardLayoutRef lastLayout = NULL;
-+    static TISInputSourceRef lastLayout = NULL;
- #endif
-     
-     void updateScancodes() {
-@@ -125,16 +125,27 @@ namespace KKeyServer {
- #endif
-             lastLayout = layout;
-             scancodes.clear();
--            void *kchr;
--            if (KLGetKeyboardLayoutProperty(layout, kKLKCHRData, const_cast<const void**>(&kchr)) != noErr) {
-+            UCKeyboardLayout *uchr = (UCKeyboardLayout *)TISGetInputSourceProperty(layout, kTISPropertyUnicodeKeyLayoutData);
-+            if (uchr == NULL) {
-                 kWarning() << "Couldn't load active keyboard layout";
-             } else {
-                 for (int i = 0; i < 128; i++) {
-                     UInt32 tmpState = 0;
--                    UInt32 chr = KeyTranslate(kchr, i, &tmpState);
--                    if (chr && chr != kFunctionKeyCharCode) {
--                        scancodes.insert(chr, i);
--                    }
-+                    UInt32 deadKeyState = 0;
-+                    UInt32 flags = 0;
-+                    UniCharCount maxStringLength = 255;
-+                    UniCharCount actualStringLength = 0;
-+                    UniChar unicodeString[maxStringLength];
-+                    
-+                    UCKeyTranslate(uchr, i, kUCKeyActionDown,
-+                            flags, LMGetKbdType(),
-+                            1, &deadKeyState, maxStringLength, &actualStringLength, unicodeString);
-+                    fprintf(stderr, "Got key: %s\n", unicodeString);
-+                    fflush(stderr);
-+                    //UInt32 chr = KeyTranslate(kchr, i, &tmpState);
-+                    //if (chr && chr != kFunctionKeyCharCode) {
-+                    //    scancodes.insert(chr, i);
-+                    //}
-                 }
-             }
-         }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-02  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-02  8:35 [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kdelibs/files/ Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox