aboutsummaryrefslogtreecommitdiffstats
path: root/main/qt5-qtbase/xcb-193.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-09 08:06:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-09 08:15:08 +0000
commit967af83a41c09a348aad6f00fc455129462b5cad (patch)
tree9ed85cb4c7156406c65f33806d20d648e84c51bc /main/qt5-qtbase/xcb-193.patch
parent7dbda83b9c37a3554800c222ad674437b609966d (diff)
downloadaports-967af83a41c09a348aad6f00fc455129462b5cad.tar.bz2
aports-967af83a41c09a348aad6f00fc455129462b5cad.tar.xz
main/qt5-*: moved from testing
Diffstat (limited to 'main/qt5-qtbase/xcb-193.patch')
-rw-r--r--main/qt5-qtbase/xcb-193.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/qt5-qtbase/xcb-193.patch b/main/qt5-qtbase/xcb-193.patch
new file mode 100644
index 0000000000..5ad3623cba
--- /dev/null
+++ b/main/qt5-qtbase/xcb-193.patch
@@ -0,0 +1,13 @@
+diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp
+index cc8c42f..d03ea6f 100644
+--- a/src/plugins/platforms/xcb/qxcbconnection.cpp
++++ b/src/plugins/platforms/xcb/qxcbconnection.cpp
+@@ -1752,7 +1752,7 @@ bool QXcbConnection::xi2GetValuatorValueIfSet(void *event, int valuatorNum, doub
+ bool QXcbConnection::xi2PrepareXIGenericDeviceEvent(xcb_ge_event_t *event, int opCode)
+ {
+ // xGenericEvent has "extension" on the second byte, xcb_ge_event_t has "pad0".
+- if (event->pad0 == opCode) {
++ if (event->extension == opCode) {
+ // xcb event structs contain stuff that wasn't on the wire, the full_sequence field
+ // adds an extra 4 bytes and generic events cookie data is on the wire right after the standard 32 bytes.
+ // Move this data back to have the same layout in memory as it was on the wire