-
Notifications
You must be signed in to change notification settings - Fork 41
cherry-pick commits of v20 #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Synchronize source files from linuxdeepin/qt5platform-plugins. Source-pull-request: linuxdeepin/qt5platform-plugins#307
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, BLumia The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/topic dtk-cpv20 |
|
Add topic: dtk-cpv20 successed. |
平台插件中判断_NET_KDE_COMPOSITE_TOGGLING是否为0,如果是0就不做处理 Log: 修复Qt 的 XCB 后端 GetProperty 有大量的 "BadAtom" 错误 Bug: https://pms.uniontech.com/bug-view-237955.html Influence: X11下应用日志 xcb"badatom"报错 Change-Id: I9620627f5b41c2a609d4df490eacdce802417a7f
Synchronize source files from linuxdeepin/qt5platform-plugins. Source-pull-request: linuxdeepin/qt5platform-plugins#307
deepin pr auto review我来对这段代码进行审查:
改进建议:
qWarning() << "Failed to get _NET_KDE_COMPOSITE_TOGGLING atom, atom value is 0. This might indicate X11 server communication issue.";
using namespace QtDebug;
qWarning() << "Failed to get _NET_KDE_COMPOSITE_TOGGLING atom...";
if (atom == 0) {
qWarning() << "Failed to get _NET_KDE_COMPOSITE_TOGGLING atom on display:"
<< DisplayString(xcb_connection);
return;
}
Q_ASSERT_X(atom != 0, "DXcbWMSupport::updateHasComposite",
"_NET_KDE_COMPOSITE_TOGGLING atom is not available");总的来说,这个改动是一个很好的改进,增加了代码的健壮性。建议的改进主要是为了提供更好的错误诊断信息,帮助开发者更快地定位问题。 |
Synchronize source files from linuxdeepin/qt5platform-plugins. Source-pull-request: linuxdeepin/qt5platform-plugins#307
平台插件中判断_NET_KDE_COMPOSITE_TOGGLING是否为0,如果是0就不做处理
Log: 修复Qt 的 XCB 后端 GetProperty 有大量的 "BadAtom" 错误
Bug: https://pms.uniontech.com/bug-view-237955.html
Influence: X11下应用日志 xcb"badatom"报错
Change-Id: I9620627f5b41c2a609d4df490eacdce802417a7f