From: Vogtinator <Vogtinator@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] Qt applications stop reacting to mouse events on big endian systems
Date: Tue, 09 May 2023 15:07:02 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43811@inbox.vuxu.org> (raw)
[-- 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
next reply other threads:[~2023-05-09 13:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-09 13:07 Vogtinator [this message]
2023-06-27 5:36 ` [ISSUE] [CLOSED] " classabbyamp
2023-06-27 5:36 ` classabbyamp
2023-06-27 6:39 ` Vogtinator
2023-06-27 6:43 ` classabbyamp
2023-06-27 6:44 ` Vogtinator
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43811@inbox.vuxu.org \
--to=vogtinator@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).