aboutsummaryrefslogtreecommitdiffstats
path: root/main/qt5-qtbase/xcb-193.patch
diff options
context:
space:
mode:
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