Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 585508 Details for
Bug 691296
dev-qt/qtgui-5.12.3-r1: mouse wheel does not work on big endian
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Workaround for broken input mask handling in qxcbconnection_xi2.cpp
qt5_xi2_be_fix.patch (text/plain), 2.31 KB, created by
Marcus Comstedt
on 2019-08-02 16:17:54 UTC
(
hide
)
Description:
Workaround for broken input mask handling in qxcbconnection_xi2.cpp
Filename:
MIME Type:
Creator:
Marcus Comstedt
Created:
2019-08-02 16:17:54 UTC
Size:
2.31 KB
patch
obsolete
>--- qtbase-everywhere-src-5.12.3/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp.orig 2019-08-02 17:27:00.011197696 +0200 >+++ qtbase-everywhere-src-5.12.3/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp 2019-08-02 17:29:36.336019411 +0200 >@@ -43,6 +43,7 @@ > #include "qxcbwindow.h" > #include "qtouchdevice.h" > #include "QtCore/qmetaobject.h" >+#include "QtCore/qendian.h" > #include <qpa/qwindowsysteminterface_p.h> > #include <QDebug> > #include <cmath> >@@ -66,6 +67,7 @@ > xiEventMask.mask = XCB_INPUT_XI_EVENT_MASK_HIERARCHY; > xiEventMask.mask |= XCB_INPUT_XI_EVENT_MASK_DEVICE_CHANGED; > xiEventMask.mask |= XCB_INPUT_XI_EVENT_MASK_PROPERTY; >+ xiEventMask.mask = qToLittleEndian(xiEventMask.mask); > xcb_input_xi_select_events(xcb_connection(), rootWindow(), 1, &xiEventMask.header); > } > >@@ -90,7 +92,7 @@ > qt_xcb_input_event_mask_t mask; > mask.header.deviceid = XCB_INPUT_DEVICE_ALL_MASTER; > mask.header.mask_len = 1; >- mask.mask = bitMask; >+ mask.mask = qToLittleEndian(bitMask); > xcb_void_cookie_t cookie = > xcb_input_xi_select_events_checked(xcb_connection(), window, 1, &mask.header); > xcb_generic_error_t *error = xcb_request_check(xcb_connection(), cookie); >@@ -359,7 +361,7 @@ > qt_xcb_input_event_mask_t xiMask; > xiMask.header.deviceid = XCB_INPUT_DEVICE_ALL_MASTER; > xiMask.header.mask_len = 1; >- xiMask.mask = mask; >+ xiMask.mask = qToLittleEndian(mask); > > xcb_void_cookie_t cookie = > xcb_input_xi_select_events_checked(xcb_connection(), window, 1, &xiMask.header); >@@ -386,7 +388,7 @@ > tabletDevices.insert(deviceId); > xiEventMask[i].header.deviceid = deviceId; > xiEventMask[i].header.mask_len = 1; >- xiEventMask[i].mask = mask; >+ xiEventMask[i].mask = qToLittleEndian(mask); > } > xcb_input_xi_select_events(xcb_connection(), window, nrTablets, &(xiEventMask.data()->header)); > } >@@ -402,7 +404,7 @@ > #endif > xiEventMask[i].header.deviceid = scrollingDevice.deviceId; > xiEventMask[i].header.mask_len = 1; >- xiEventMask[i].mask = mask; >+ xiEventMask[i].mask = qToLittleEndian(mask); > i++; > } > xcb_input_xi_select_events(xcb_connection(), window, i, &(xiEventMask.data()->header));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 691296
: 585508 |
793985