* [ISSUE] Qt applications stop reacting to mouse events on big endian systems
@ 2023-05-09 13:07 Vogtinator
2023-06-27 5:36 ` classabbyamp
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Vogtinator @ 2023-05-09 13:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]
New issue by Vogtinator on void-packages repository
https://github.com/void-linux/void-packages/issues/43811
Description:
To fix https://bugreports.qt.io/browse/QTBUG-112526, we also applied your qtbase patch `big-endian-scroll.patch` to openSUSE.
However, we got a bug report that this broke popup menus: When e.g. opening a context menu, the application completely stops reacting to mouse events (internally reported as https://bugzilla.suse.com/show_bug.cgi?id=1211024).
This is because it's missing endianess conversion in `QXcbConnection::xi2SetMouseGrabEnabled`.
You might want to add the missing part manually:
```
@@ -826,6 +828,8 @@ bool QXcbConnection::xi2SetMouseGrabEnabled(xcb_window_t w, bool grab)
| XCB_INPUT_XI_EVENT_MASK_TOUCH_UPDATE
| XCB_INPUT_XI_EVENT_MASK_TOUCH_END;
+ mask = qToLittleEndian(mask);
+
for (int id : qAsConst(m_xiMasterPointerIds)) {
xcb_generic_error_t *error = nullptr;
auto cookie = xcb_input_xi_grab_device(xcb_connection(), w, XCB_CURRENT_TIME, XCB_CURSOR_NONE, id,
```
or grab the updated patch:
https://build.opensuse.org/package/view_file/home:Vogtinator:qt5.15/libqt5-qtbase/big-endian-scroll.patch?expand=1
CC @q66
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Qt applications stop reacting to mouse events on big endian systems
2023-05-09 13:07 [ISSUE] Qt applications stop reacting to mouse events on big endian systems Vogtinator
@ 2023-06-27 5:36 ` classabbyamp
2023-06-27 5:36 ` [ISSUE] [CLOSED] " classabbyamp
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2023-06-27 5:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/43811#issuecomment-1608827467
Comment:
void-ppc is no longer being developed by q66
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ISSUE] [CLOSED] Qt applications stop reacting to mouse events on big endian systems
2023-05-09 13:07 [ISSUE] Qt applications stop reacting to mouse events on big endian systems Vogtinator
2023-06-27 5:36 ` classabbyamp
@ 2023-06-27 5:36 ` classabbyamp
2023-06-27 6:39 ` Vogtinator
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2023-06-27 5:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]
Closed issue by Vogtinator on void-packages repository
https://github.com/void-linux/void-packages/issues/43811
Description:
To fix https://bugreports.qt.io/browse/QTBUG-112526, we also applied your qtbase patch `big-endian-scroll.patch` to openSUSE.
However, we got a bug report that this broke popup menus: When e.g. opening a context menu, the application completely stops reacting to mouse events (internally reported as https://bugzilla.suse.com/show_bug.cgi?id=1211024).
This is because it's missing endianess conversion in `QXcbConnection::xi2SetMouseGrabEnabled`.
You might want to add the missing part manually:
```
@@ -826,6 +828,8 @@ bool QXcbConnection::xi2SetMouseGrabEnabled(xcb_window_t w, bool grab)
| XCB_INPUT_XI_EVENT_MASK_TOUCH_UPDATE
| XCB_INPUT_XI_EVENT_MASK_TOUCH_END;
+ mask = qToLittleEndian(mask);
+
for (int id : qAsConst(m_xiMasterPointerIds)) {
xcb_generic_error_t *error = nullptr;
auto cookie = xcb_input_xi_grab_device(xcb_connection(), w, XCB_CURRENT_TIME, XCB_CURSOR_NONE, id,
```
or grab the updated patch:
https://build.opensuse.org/package/view_file/home:Vogtinator:qt5.15/libqt5-qtbase/big-endian-scroll.patch?expand=1
CC @q66
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Qt applications stop reacting to mouse events on big endian systems
2023-05-09 13:07 [ISSUE] Qt applications stop reacting to mouse events on big endian systems Vogtinator
2023-06-27 5:36 ` classabbyamp
2023-06-27 5:36 ` [ISSUE] [CLOSED] " classabbyamp
@ 2023-06-27 6:39 ` Vogtinator
2023-06-27 6:43 ` classabbyamp
2023-06-27 6:44 ` Vogtinator
4 siblings, 0 replies; 6+ messages in thread
From: Vogtinator @ 2023-06-27 6:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
New comment by Vogtinator on void-packages repository
https://github.com/void-linux/void-packages/issues/43811#issuecomment-1608885257
Comment:
Then please reassign to someone else or remove the offending patch?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Qt applications stop reacting to mouse events on big endian systems
2023-05-09 13:07 [ISSUE] Qt applications stop reacting to mouse events on big endian systems Vogtinator
` (2 preceding siblings ...)
2023-06-27 6:39 ` Vogtinator
@ 2023-06-27 6:43 ` classabbyamp
2023-06-27 6:44 ` Vogtinator
4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2023-06-27 6:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 227 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/43811#issuecomment-1608888706
Comment:
sorry I more meant it's not being developed at all. it was an unofficial port.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Qt applications stop reacting to mouse events on big endian systems
2023-05-09 13:07 [ISSUE] Qt applications stop reacting to mouse events on big endian systems Vogtinator
` (3 preceding siblings ...)
2023-06-27 6:43 ` classabbyamp
@ 2023-06-27 6:44 ` Vogtinator
4 siblings, 0 replies; 6+ messages in thread
From: Vogtinator @ 2023-06-27 6:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
New comment by Vogtinator on void-packages repository
https://github.com/void-linux/void-packages/issues/43811#issuecomment-1608889637
Comment:
Yeah, in that case you should probably remove the patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-06-27 6:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09 13:07 [ISSUE] Qt applications stop reacting to mouse events on big endian systems Vogtinator
2023-06-27 5:36 ` classabbyamp
2023-06-27 5:36 ` [ISSUE] [CLOSED] " classabbyamp
2023-06-27 6:39 ` Vogtinator
2023-06-27 6:43 ` classabbyamp
2023-06-27 6:44 ` Vogtinator
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).