Hello community, here is the log from the commit of package kglobalaccel for openSUSE:Factory checked in at 2017-09-19 16:23:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kglobalaccel (Old) and /work/SRC/openSUSE:Factory/.kglobalaccel.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kglobalaccel" Tue Sep 19 16:23:43 2017 rev:46 rq:526646 version:5.38.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kglobalaccel/kglobalaccel.changes 2017-08-24 17:56:05.953153701 +0200 +++ /work/SRC/openSUSE:Factory/.kglobalaccel.new/kglobalaccel.changes 2017-09-19 16:23:44.720349278 +0200 @@ -1,0 +2,16 @@ +Thu Sep 14 06:59:25 UTC 2017 - [email protected] + +- Revert upstream commit to avoid major regressions (kde#384597): + * 0001-Revert-KGlobalAccel-port-to-KKeyServer-s-new-method-.patch + +------------------------------------------------------------------- +Tue Sep 12 07:11:17 CEST 2017 - [email protected] + +- Update to 5.38.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/kde-frameworks-5.38.0.php +- Changes since 5.37.0: + * KGlobalAccel: port to KKeyServer's new method symXModXToKeyQt, to fix numpad keys (kde#183458) + +------------------------------------------------------------------- Old: ---- kglobalaccel-5.37.0.tar.xz New: ---- 0001-Revert-KGlobalAccel-port-to-KKeyServer-s-new-method-.patch kglobalaccel-5.38.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kglobalaccel.spec ++++++ --- /var/tmp/diff_new_pack.lvoFey/_old 2017-09-19 16:23:45.360258579 +0200 +++ /var/tmp/diff_new_pack.lvoFey/_new 2017-09-19 16:23:45.364258012 +0200 @@ -17,55 +17,61 @@ %bcond_without lang + %define lname libKF5GlobalAccel5 -%define _tar_path 5.37 +%define _tar_path 5.38 Name: kglobalaccel -Version: 5.37.0 +Version: 5.38.0 Release: 0 -%define kf5_version %{version} +# Full KF5 version (e.g. 5.33.0) +%{!?_kf5_version: %global _kf5_version %{version}} +# Last major and minor KF5 version (e.g. 5.33) +%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} +Summary: Global desktop keyboard shortcuts +License: LGPL-2.1+ +Group: System/GUI/KDE +Url: http://www.kde.org +Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz +Source1: baselibs.conf +# PATCH-FIX-OPENSUSE +Patch1: 0001-Revert-KGlobalAccel-port-to-KKeyServer-s-new-method-.patch BuildRequires: cmake >= 3.0 -BuildRequires: extra-cmake-modules >= %{_tar_path} +BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version} BuildRequires: fdupes -BuildRequires: kconfig-devel >= %{_tar_path} -BuildRequires: kcoreaddons-devel >= %{_tar_path} -BuildRequires: kcrash-devel >= %{_tar_path} -BuildRequires: kdbusaddons-devel >= %{_tar_path} +BuildRequires: kconfig-devel >= %{_kf5_bugfix_version} +BuildRequires: kcoreaddons-devel >= %{_kf5_bugfix_version} +BuildRequires: kcrash-devel >= %{_kf5_bugfix_version} +BuildRequires: kdbusaddons-devel >= %{_kf5_bugfix_version} BuildRequires: kf5-filesystem -BuildRequires: kwindowsystem-devel >= %{_tar_path} -%if %{with lang} -BuildRequires: cmake(Qt5LinguistTools) >= 5.6.0 -%endif +BuildRequires: kwindowsystem-devel >= %{_kf5_bugfix_version} BuildRequires: libxcb-devel +BuildRequires: pkgconfig BuildRequires: cmake(Qt5DBus) >= 5.6.0 BuildRequires: cmake(Qt5Test) >= 5.6.0 BuildRequires: cmake(Qt5Widgets) >= 5.6.0 BuildRequires: cmake(Qt5X11Extras) >= 5.6.0 BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb-keysyms) -Summary: Global desktop keyboard shortcuts -License: LGPL-2.1+ -Group: System/GUI/KDE -Url: http://www.kde.org -Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz -Source1: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %{with lang} +BuildRequires: cmake(Qt5LinguistTools) >= 5.6.0 +%endif %description KGlobalAccel allows you to have global accelerators that are independent of the focused window. Unlike regular shortcuts, the application's window does not need focus for them to be activated. -%package -n %lname +%package -n %{lname} Summary: Global desktop keyboard shortcuts Group: System/GUI/KDE +%requires_ge libQt5DBus5 +%requires_ge libQt5Widgets5 +Recommends: kglobalaccel5 %if %{with lang} -Recommends: %lname-lang = %{version} +Recommends: %{lname}-lang = %{version} %endif -Recommends: kglobalaccel5 -%requires_ge libQt5Widgets5 -%requires_ge libQt5DBus5 -%description -n %lname +%description -n %{lname} KGlobalAccel allows you to have global accelerators that are independent of the focused window. Unlike regular shortcuts, the application's window does not need focus for them to be activated. @@ -82,7 +88,7 @@ %package devel Summary: Global desktop keyboard shortcuts: Build Environment Group: Development/Libraries/KDE -Requires: %lname = %{version} +Requires: %{lname} = %{version} Requires: extra-cmake-modules Requires: libKF5GlobalAccelPrivate5 = %{version} Requires: cmake(Qt5DBus) >= 5.6.0 @@ -102,9 +108,11 @@ of the focused window. Unlike regular shortcuts, the application's window does not need focus for them to be activated. -%lang_package -n %lname +%lang_package -n %{lname} + %prep %setup -q +%patch1 -p1 %build %cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert @@ -118,30 +126,24 @@ %find_lang %{name}5 --with-qt --without-mo %endif -%post -n %lname -p /sbin/ldconfig - -%postun -n %lname -p /sbin/ldconfig - +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig %post -n libKF5GlobalAccelPrivate5 -p /sbin/ldconfig - %postun -n libKF5GlobalAccelPrivate5 -p /sbin/ldconfig %if %{with lang} -%files -n %lname-lang -f %{name}5.lang +%files -n %{lname}-lang -f %{name}5.lang %endif -%files -n %lname -%defattr(-,root,root) +%files -n %{lname} %doc COPYING* README* %{_kf5_libdir}/libKF5GlobalAccel.so.* %files -n libKF5GlobalAccelPrivate5 -%defattr(-,root,root) %doc COPYING* README* %{_kf5_libdir}/libKF5GlobalAccelPrivate.so.* %files devel -%defattr(-,root,root) %{_kf5_libdir}/libKF5GlobalAccel.so %{_kf5_libdir}/cmake/KF5GlobalAccel/ %{_kf5_includedir}/ @@ -150,7 +152,6 @@ %{_kf5_mkspecsdir}/qt_KGlobalAccel.pri %files -n kglobalaccel5 -%defattr(-,root,root) %doc COPYING* %{_kf5_bindir}/kglobalaccel5 %dir %{_kf5_plugindir}/org.kde.kglobalaccel5.platforms ++++++ 0001-Revert-KGlobalAccel-port-to-KKeyServer-s-new-method-.patch ++++++ >From 1bc5d825c69265d219fce0268bdf1d689c42a1e7 Mon Sep 17 00:00:00 2001 From: Fabian Vogt <[email protected]> Date: Thu, 14 Sep 2017 08:58:39 +0200 Subject: [PATCH] Revert "KGlobalAccel: port to KKeyServer's new method symXModXToKeyQt, to fix numpad keys" This reverts commit 2c20ddff034e4958bf0536ca91ae9e444955305d. --- src/runtime/plugins/xcb/kglobalaccel_x11.cpp | 52 ++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/src/runtime/plugins/xcb/kglobalaccel_x11.cpp b/src/runtime/plugins/xcb/kglobalaccel_x11.cpp index d76f1d5..9b37c7b 100644 --- a/src/runtime/plugins/xcb/kglobalaccel_x11.cpp +++ b/src/runtime/plugins/xcb/kglobalaccel_x11.cpp @@ -122,7 +122,6 @@ bool KGlobalAccelImpl::grabKey( int keyQt, bool grab ) // can remove shift for some keys. (all the %&* and such) if( !(keyQt & Qt::SHIFT) && !KKeyServer::isShiftAsModifierAllowed( keyQt ) && - !(keyQt & Qt::KeypadModifier) && keySymX != xcb_key_symbols_get_keysym(m_keySymbols, keyCodeX, 0) && keySymX == xcb_key_symbols_get_keysym(m_keySymbols, keyCodeX, 1) ) { @@ -244,12 +243,51 @@ bool KGlobalAccelImpl::x11KeyPress(xcb_key_press_event_t *pEvent) xcb_ungrab_keyboard(c, XCB_TIME_CURRENT_TIME); xcb_flush(c); - int keyQt; - if (!KKeyServer::xcbKeyPressEventToQt(pEvent, &keyQt)) { - qCWarning(KGLOBALACCELD) << "KKeyServer::xcbKeyPressEventToQt failed"; - return false; - } - //qDebug() << "keyQt=" << QString::number(keyQt, 16); + xcb_keycode_t keyCodeX = pEvent->detail; + uint16_t keyModX = pEvent->state & (g_keyModMaskXAccel | KKeyServer::MODE_SWITCH); + + xcb_keysym_t keySymX = xcb_key_press_lookup_keysym(m_keySymbols, pEvent, 0); + + // If numlock is active and a keypad key is pressed, XOR the SHIFT state. + // e.g., KP_4 => Shift+KP_Left, and Shift+KP_4 => KP_Left. + if (pEvent->state & KKeyServer::modXNumLock()) { + // If this is a keypad key, + if( keySymX >= XK_KP_Space && keySymX <= XK_KP_9 ) { + switch( keySymX ) { + + // Leave the following keys unaltered + // FIXME: The proper solution is to see which keysyms don't change when shifted. + case XK_KP_Multiply: + case XK_KP_Add: + case XK_KP_Subtract: + case XK_KP_Divide: + case XK_KP_Enter: + break; + + default: + keyModX ^= KKeyServer::modXShift(); + } + } + } + + int keyCodeQt; + int keyModQt; + KKeyServer::symXToKeyQt(keySymX, &keyCodeQt); + KKeyServer::modXToQt(keyModX, &keyModQt); + + if ((keyModQt & Qt::SHIFT) && !KKeyServer::isShiftAsModifierAllowed( keyCodeQt ) ) { +#ifdef KDEDGLOBALACCEL_TRACE + qCDebug(KGLOBALACCELD) << "removing shift modifier"; +#endif + if (keyCodeQt != Qt::Key_Tab) { // KKeySequenceWidget does not map shift+tab to backtab + static const int FirstLevelShift = 1; + keySymX = xcb_key_symbols_get_keysym(m_keySymbols, keyCodeX, FirstLevelShift); + KKeyServer::symXToKeyQt(keySymX, &keyCodeQt); + } + keyModQt &= ~Qt::SHIFT; + } + + int keyQt = keyCodeQt | keyModQt; // All that work for this hey... argh... if (NET::timestampCompare(pEvent->time, QX11Info::appTime()) > 0) { -- 2.14.1 ++++++ kglobalaccel-5.37.0.tar.xz -> kglobalaccel-5.38.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kglobalaccel-5.37.0/CMakeLists.txt new/kglobalaccel-5.38.0/CMakeLists.txt --- old/kglobalaccel-5.37.0/CMakeLists.txt 2017-08-06 20:02:48.000000000 +0200 +++ new/kglobalaccel-5.38.0/CMakeLists.txt 2017-09-03 10:06:21.000000000 +0200 @@ -1,12 +1,12 @@ cmake_minimum_required(VERSION 3.0) -set(KF5_VERSION "5.37.0") # handled by release scripts -set(KF5_DEP_VERSION "5.37.0") # handled by release scripts +set(KF5_VERSION "5.38.0") # handled by release scripts +set(KF5_DEP_VERSION "5.38.0") # handled by release scripts project(KGlobalAccel VERSION ${KF5_VERSION}) # ECM setup include(FeatureSummary) -find_package(ECM 5.37.0 NO_MODULE) +find_package(ECM 5.38.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kglobalaccel-5.37.0/po/eu/kglobalaccel5_qt.po new/kglobalaccel-5.38.0/po/eu/kglobalaccel5_qt.po --- old/kglobalaccel-5.37.0/po/eu/kglobalaccel5_qt.po 2017-08-06 20:02:48.000000000 +0200 +++ new/kglobalaccel-5.38.0/po/eu/kglobalaccel5_qt.po 2017-09-03 10:06:21.000000000 +0200 @@ -1,103 +1,84 @@ -# translation of kdelibs4.po to Euskara/Basque (eu) -# KDE: EUSKERA TRANSLATION -# Copyright (C) 1999,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011, Free Software Foundation, Inc. +# Translation of kglobalaccel5_qt.po to Euskara/Basque (eu). +# Copyright (C) 1999-2017, Free Software Foundation, Inc. +# This file is distributed under the same license as the kde-workspace package. +# KDE Euskaratzeko proiektuaren arduraduna <[email protected]>. # -# Marcos <[email protected]>, 2002,2003, 2004, 2005. +# Marcos <[email protected]>, 2002,2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010. # Ion Gaztañaga <[email protected]>, 2005. -# marcos <[email protected]>, 2006, 2007, 2008, 2009, 2010. # Iñaki Larrañaga Murgoitio <[email protected]>, 2009. -# Iñigo Salvador Azurmendi <[email protected]>, 2010, 2011, 2012, 2013, 2014. +# Iñigo Salvador Azurmendi <[email protected]>, 2010, 2011, 2012, 2013, 2014, 2017. msgid "" msgstr "" -"Project-Id-Version: kdelibs4\n" +"Project-Id-Version: kglobalaccel5_qt\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2014-03-23 01:50+0000\n" -"PO-Revision-Date: 2014-03-02 19:49+0100\n" +"PO-Revision-Date: 2017-08-28 11:32+0100\n" "Last-Translator: Iñigo Salvador Azurmendi <[email protected]>\n" "Language-Team: Basque <[email protected]>\n" "Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Lokalize 1.5\n" +"X-Generator: Lokalize 2.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Qt-Contexts: true\n" #: kglobalaccel.cpp:553 -#, fuzzy -#| msgid "Conflict with Global Shortcut" msgctxt "KGlobalAccel|" msgid "Conflict with Global Shortcut" -msgstr "Lasterbide globalekin gatazkan" +msgstr "Gatazka lasterbide orokorrarekin" #: kglobalaccel.cpp:554 -#, fuzzy, qt-format -#| msgid "" -#| "The '%1' key combination has already been allocated to the global action " -#| "\"%2\" in %3.\n" -#| "Do you want to reassign it from that action to the current one?" +#, qt-format msgctxt "KGlobalAccel|" msgid "" "The '%1' key combination has already been allocated to the global action " "\"%2\" in %3.\n" "Do you want to reassign it from that action to the current one?" msgstr "" -"'%1' tekla-konbinazioa jadanik \"%2\" ekintza globalarekin lotuta dago " -"\"%3\"-(e)n.\n" -"Dagoen tekla-konbinazioa unekoarekin lotzea nahi duzu?" +"'%1' tekla konbinazioa jada \"%2\" ekintza globalarekin lotuta dago\"%3\"-" +"(e)n.\n" +"Esleipen berria egin nahi diozu ekintza horretatik honetara?" #: kglobalaccel.cpp:563 kglobalaccel.cpp:607 -#, fuzzy -#| msgid "Reassign" msgctxt "KGlobalAccel|" msgid "Reassign" -msgstr "Lotu" +msgstr "Esleipen berria" #: kglobalaccel.cpp:585 -#, fuzzy, qt-format -#| msgid "" -#| "The '%1' key combination is registered by application %2 for action %3:" +#, qt-format msgctxt "KGlobalAccel|" msgid "The '%1' key combination is registered by application %2 for action %3:" msgstr "" -"'%1' tekla konbinazioa %2 aplikazioak erregistratuta dauka %3 " -"ekintzarentzako:" +"'%1' tekla konbinazioa %2 aplikazioak erregistratuta dauka %3 ekintzarako:" #: kglobalaccel.cpp:592 -#, fuzzy, qt-format -#| msgid "In context '%1' for action '%2'\n" +#, qt-format msgctxt "KGlobalAccel|" msgid "In context '%1' for action '%2'\n" -msgstr "'%1' testuinguruan '%2' ekintzarentzako\n" +msgstr "'%1' testuinguruan '%2' ekintzarako\n" #: kglobalaccel.cpp:596 -#, fuzzy, qt-format -#| msgid "" -#| "The '%1' key combination is registered by application %2.\n" -#| "%3" +#, qt-format msgctxt "KGlobalAccel|" msgid "" "The '%1' key combination is registered by application %2.\n" "%3" msgstr "" -"'%1' tekla konbinazioa %2 aplikazioak erregistratuta dauka.\n" +"'%1' tekla konbinazioa %2 aplikazioak erregistratu du.\n" "%3" #: kglobalaccel.cpp:602 -#, fuzzy -#| msgid "Conflict With Registered Global Shortcut" msgctxt "KGlobalAccel|" msgid "Conflict With Registered Global Shortcut" -msgstr "Erregistratutako lasterbide globalekin gatazkan" +msgstr "Gatazka erregistratutako lasterbide orokorrarekin" #: runtime/main.cpp:52 runtime/main.cpp:54 msgctxt "QObject|" msgid "KDE Global Shortcuts Service" -msgstr "" +msgstr "KDE lasterbide orokorren zerbitzua" #: runtime/main.cpp:57 runtime/main.cpp:58 -#, fuzzy -#| msgid "Maintainer" msgctxt "QObject|" msgid "Maintainer" -msgstr "Mantentzailea" +msgstr "Arduraduna" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kglobalaccel-5.37.0/src/runtime/plugins/xcb/kglobalaccel_x11.cpp new/kglobalaccel-5.38.0/src/runtime/plugins/xcb/kglobalaccel_x11.cpp --- old/kglobalaccel-5.37.0/src/runtime/plugins/xcb/kglobalaccel_x11.cpp 2017-08-06 20:02:48.000000000 +0200 +++ new/kglobalaccel-5.38.0/src/runtime/plugins/xcb/kglobalaccel_x11.cpp 2017-09-03 10:06:21.000000000 +0200 @@ -122,6 +122,7 @@ // can remove shift for some keys. (all the %&* and such) if( !(keyQt & Qt::SHIFT) && !KKeyServer::isShiftAsModifierAllowed( keyQt ) && + !(keyQt & Qt::KeypadModifier) && keySymX != xcb_key_symbols_get_keysym(m_keySymbols, keyCodeX, 0) && keySymX == xcb_key_symbols_get_keysym(m_keySymbols, keyCodeX, 1) ) { @@ -243,51 +244,12 @@ xcb_ungrab_keyboard(c, XCB_TIME_CURRENT_TIME); xcb_flush(c); - xcb_keycode_t keyCodeX = pEvent->detail; - uint16_t keyModX = pEvent->state & (g_keyModMaskXAccel | KKeyServer::MODE_SWITCH); - - xcb_keysym_t keySymX = xcb_key_press_lookup_keysym(m_keySymbols, pEvent, 0); - - // If numlock is active and a keypad key is pressed, XOR the SHIFT state. - // e.g., KP_4 => Shift+KP_Left, and Shift+KP_4 => KP_Left. - if (pEvent->state & KKeyServer::modXNumLock()) { - // If this is a keypad key, - if( keySymX >= XK_KP_Space && keySymX <= XK_KP_9 ) { - switch( keySymX ) { - - // Leave the following keys unaltered - // FIXME: The proper solution is to see which keysyms don't change when shifted. - case XK_KP_Multiply: - case XK_KP_Add: - case XK_KP_Subtract: - case XK_KP_Divide: - case XK_KP_Enter: - break; - - default: - keyModX ^= KKeyServer::modXShift(); - } - } - } - - int keyCodeQt; - int keyModQt; - KKeyServer::symXToKeyQt(keySymX, &keyCodeQt); - KKeyServer::modXToQt(keyModX, &keyModQt); - - if ((keyModQt & Qt::SHIFT) && !KKeyServer::isShiftAsModifierAllowed( keyCodeQt ) ) { -#ifdef KDEDGLOBALACCEL_TRACE - qCDebug(KGLOBALACCELD) << "removing shift modifier"; -#endif - if (keyCodeQt != Qt::Key_Tab) { // KKeySequenceWidget does not map shift+tab to backtab - static const int FirstLevelShift = 1; - keySymX = xcb_key_symbols_get_keysym(m_keySymbols, keyCodeX, FirstLevelShift); - KKeyServer::symXToKeyQt(keySymX, &keyCodeQt); - } - keyModQt &= ~Qt::SHIFT; - } - - int keyQt = keyCodeQt | keyModQt; + int keyQt; + if (!KKeyServer::xcbKeyPressEventToQt(pEvent, &keyQt)) { + qCWarning(KGLOBALACCELD) << "KKeyServer::xcbKeyPressEventToQt failed"; + return false; + } + //qDebug() << "keyQt=" << QString::number(keyQt, 16); // All that work for this hey... argh... if (NET::timestampCompare(pEvent->time, QX11Info::appTime()) > 0) {
