8af35d27.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 8af35d27e8f02bbb99aef4ac495ed406e50e3cca Mon Sep 17 00:00:00 2001
  2. From: Liang Qi <liang.qi@qt.io>
  3. Date: Tue, 10 Oct 2023 14:08:48 +0200
  4. Subject: xkb: fix build with libxkbcommon 1.6.0 and later
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. A few XKB_KEY_dead_* defines got removed from 1.6.0. See also
  9. https://github.com/xkbcommon/libxkbcommon/blob/6073565903488cb5b9a8d37fdc4a7c2f9d7ad04d/NEWS#L9-L14
  10. https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/70/diffs?commit_id=cb44799b72f611eb4c9d7cc185bc3b09e070be08
  11. Pick-to: 6.6 6.5 6.2 5.15
  12. Fixes: QTBUG-117950
  13. Change-Id: I55861868f2bb29c553d68365fa9b9b6ed01c9aea
  14. Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
  15. ---
  16. src/gui/platform/unix/qxkbcommon.cpp | 4 ++++
  17. 1 file changed, 4 insertions(+)
  18. diff --git a/src/gui/platform/unix/qxkbcommon.cpp b/src/gui/platform/unix/qxkbcommon.cpp
  19. index 26d87c5ff5..7b611790c6 100644
  20. --- a/src/gui/platform/unix/qxkbcommon.cpp
  21. +++ b/src/gui/platform/unix/qxkbcommon.cpp
  22. @@ -237,10 +237,14 @@ static constexpr const auto KeyTbl = qMakeArray(
  23. Xkb2Qt<XKB_KEY_dead_small_schwa, Qt::Key_Dead_Small_Schwa>,
  24. Xkb2Qt<XKB_KEY_dead_capital_schwa, Qt::Key_Dead_Capital_Schwa>,
  25. Xkb2Qt<XKB_KEY_dead_greek, Qt::Key_Dead_Greek>,
  26. +/* The following four XKB_KEY_dead keys got removed in libxkbcommon 1.6.0
  27. + The define check is kind of version check here. */
  28. +#ifdef XKB_KEY_dead_lowline
  29. Xkb2Qt<XKB_KEY_dead_lowline, Qt::Key_Dead_Lowline>,
  30. Xkb2Qt<XKB_KEY_dead_aboveverticalline, Qt::Key_Dead_Aboveverticalline>,
  31. Xkb2Qt<XKB_KEY_dead_belowverticalline, Qt::Key_Dead_Belowverticalline>,
  32. Xkb2Qt<XKB_KEY_dead_longsolidusoverlay, Qt::Key_Dead_Longsolidusoverlay>,
  33. +#endif
  34. // Special keys from X.org - This include multimedia keys,
  35. // wireless/bluetooth/uwb keys, special launcher keys, etc.
  36. --
  37. cgit v1.2.3