Skip to content

xcb: Replace qCWarning by qCDebug in QXcbConnection::printXcbError()

Example: Error "BadWindow" (3) is raised by the XCB backend when a mouse event is processed on a resource that disappears between posting and processing of the event. That constellation is harmless and can occur in async environments.

As XCB errors point to coding issues, this patch changes their logging behavior from qCWarning to qCDebug.

Fixes: QTBUG-56893 Pick-to: 6.4 6.3 5.15 Change-Id: Idee5ee80efaf9cd6686448779f76c68d5e4c9b63 Reviewed-by: default avatarLiang Qi liang.qi@qt.io (cherry picked from commit 373392ee)


See also this comment.

The useless warnings qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 560, resource id: 11456874, major code: 40 (TranslateCoords), minor code: 0 flood systemd journal. For example, the following programs on my system regularly print this warning: kwin_x11, kdevelop, kate, goldendict, octopi, octopi-notifier, qtcreator, konsole.

Merge request reports