diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2018-03-12 14:43:43 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2018-03-13 13:14:58 +0000 |
commit | 13de43550479ca56f6e680369c32df8344524152 (patch) | |
tree | 40e053e52e2ff55a317ebf08f8cb027df3750d10 | |
parent | ad6ed21ff3c0fa3cc7730271f0b9188142b69117 (diff) | |
download | meta-qt5-13de43550479ca56f6e680369c32df8344524152.tar.gz |
qtwayland: remove obsolete patch
Task-number: QTBUG-66307
Change-Id: I55922b5384b25038c453bbb2365e71f0a23f4040
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r-- | recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch | 68 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwayland_git.bb | 7 |
2 files changed, 0 insertions, 75 deletions
diff --git a/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch b/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch deleted file mode 100644 index f6963d33..00000000 --- a/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | From 477e20becc2253629734ef51e5471500eb55635d Mon Sep 17 00:00:00 2001 | ||
2 | From: Raphael Freudiger <laser_b@gmx.ch> | ||
3 | Date: Tue, 10 Jan 2017 15:49:55 +0100 | ||
4 | Subject: [PATCH] fix build without xkbcommon-evdev | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Change-Id: I4f52c4ad741fdd7063a18b67f5777b52f03726fe | ||
10 | Signed-off-by: Raphael Freudiger <laser_b@gmx.ch> | ||
11 | Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com> | ||
12 | --- | ||
13 | src/client/client.pro | 2 ++ | ||
14 | src/compositor/compositor.pro | 2 ++ | ||
15 | src/compositor/compositor_api/qwaylandkeyboard.cpp | 13 +++++++------ | ||
16 | 3 files changed, 11 insertions(+), 6 deletions(-) | ||
17 | |||
18 | diff --git a/src/client/client.pro b/src/client/client.pro | ||
19 | index eae7ad5..0bb7b18 100644 | ||
20 | --- a/src/client/client.pro | ||
21 | +++ b/src/client/client.pro | ||
22 | @@ -147,3 +147,5 @@ MODULE_PLUGIN_TYPES = \ | ||
23 | wayland-decoration-client \ | ||
24 | wayland-shell-integration | ||
25 | load(qt_module) | ||
26 | + | ||
27 | +LIBS += -lxkbcommon | ||
28 | diff --git a/src/compositor/compositor.pro b/src/compositor/compositor.pro | ||
29 | index dc9000d..4eebfd6 100644 | ||
30 | --- a/src/compositor/compositor.pro | ||
31 | +++ b/src/compositor/compositor.pro | ||
32 | @@ -32,3 +32,5 @@ include ($$PWD/extensions/extensions.pri) | ||
33 | MODULE_PLUGIN_TYPES = \ | ||
34 | wayland-graphics-integration-server | ||
35 | load(qt_module) | ||
36 | + | ||
37 | +LIBS += -lxkbcommon | ||
38 | diff --git a/src/compositor/compositor_api/qwaylandkeyboard.cpp b/src/compositor/compositor_api/qwaylandkeyboard.cpp | ||
39 | index c30f7b1..e6f1a0b 100644 | ||
40 | --- a/src/compositor/compositor_api/qwaylandkeyboard.cpp | ||
41 | +++ b/src/compositor/compositor_api/qwaylandkeyboard.cpp | ||
42 | @@ -349,12 +349,6 @@ void QWaylandKeyboardPrivate::createXKBState(xkb_keymap *keymap) | ||
43 | xkb_state = xkb_state_new(keymap); | ||
44 | } | ||
45 | |||
46 | -uint QWaylandKeyboardPrivate::toWaylandXkbV1Key(const uint nativeScanCode) | ||
47 | -{ | ||
48 | - const uint offset = 8; | ||
49 | - Q_ASSERT(nativeScanCode >= offset); | ||
50 | - return nativeScanCode - offset; | ||
51 | -} | ||
52 | |||
53 | void QWaylandKeyboardPrivate::createXKBKeymap() | ||
54 | { | ||
55 | @@ -384,6 +378,13 @@ void QWaylandKeyboardPrivate::createXKBKeymap() | ||
56 | } | ||
57 | #endif | ||
58 | |||
59 | +uint QWaylandKeyboardPrivate::toWaylandXkbV1Key(const uint nativeScanCode) | ||
60 | +{ | ||
61 | + const uint offset = 8; | ||
62 | + Q_ASSERT(nativeScanCode >= offset); | ||
63 | + return nativeScanCode - offset; | ||
64 | +} | ||
65 | + | ||
66 | void QWaylandKeyboardPrivate::sendRepeatInfo() | ||
67 | { | ||
68 | Q_FOREACH (Resource *resource, resourceMap()) { | ||
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb index 543aef56..546d8af4 100644 --- a/recipes-qt/qt5/qtwayland_git.bb +++ b/recipes-qt/qt5/qtwayland_git.bb | |||
@@ -39,13 +39,6 @@ EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" | |||
39 | 39 | ||
40 | SRCREV = "7ce033cbf9a80d2ea5d687956da668cf4567d361" | 40 | SRCREV = "7ce033cbf9a80d2ea5d687956da668cf4567d361" |
41 | 41 | ||
42 | # Patches from https://github.com/meta-qt5/qtwayland/commits/b5.10 | ||
43 | # 5.10.meta-qt5.1 | ||
44 | # From https://bugreports.qt.io/browse/QTBUG-57767 | ||
45 | SRC_URI += " \ | ||
46 | file://0001-fix-build-without-xkbcommon-evdev.patch \ | ||
47 | " | ||
48 | |||
49 | BBCLASSEXTEND =+ "native nativesdk" | 42 | BBCLASSEXTEND =+ "native nativesdk" |
50 | 43 | ||
51 | # The same issue as in qtbase: | 44 | # The same issue as in qtbase: |