patch-src_mumble_GlobalShortcut_unix_cpp 668 B

12345678910111213141516
  1. $OpenBSD: patch-src_mumble_GlobalShortcut_unix_cpp,v 1.2 2015/06/12 09:43:12 dcoppa Exp $
  2. 'XKeycodeToKeysym' is deprecated
  3. --- src/mumble/GlobalShortcut_unix.cpp.orig Thu Jun 11 21:49:58 2015
  4. +++ src/mumble/GlobalShortcut_unix.cpp Fri Jun 12 10:33:36 2015
  5. @@ -337,7 +337,7 @@ QString GlobalShortcutX::buttonName(const QVariant &v)
  6. if (!ok)
  7. return QString();
  8. if ((key < 0x118) || (key >= 0x128)) {
  9. - KeySym ks=XKeycodeToKeysym(QX11Info::display(), static_cast<KeyCode>(key), 0);
  10. + KeySym ks=XkbKeycodeToKeysym(QX11Info::display(), static_cast<KeyCode>(key), 0, 0);
  11. if (ks == NoSymbol) {
  12. return QLatin1String("0x")+QString::number(key,16);
  13. } else {