Skip to content

Commit 18b70c7

Browse files
Whale10718202781743
authored andcommitted
fix: 修复Qt 的 XCB 后端 GetProperty 有大量的 "BadAtom" 错误
平台插件中判断_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
1 parent a764478 commit 18b70c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xcb/dxcbwmsupport.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ void DXcbWMSupport::updateHasComposite()
171171
xcb_connection_t *xcb_connection = DPlatformIntegration::xcbConnection()->xcb_connection();
172172

173173
auto atom = Utility::internAtom("_NET_KDE_COMPOSITE_TOGGLING");
174+
175+
if (atom == 0) {
176+
qWarning() << "The value of atom:_NET_KDE_COMPOSITE_TOGGLING is 0 !";
177+
return;
178+
}
179+
174180
xcb_window_t root = DPlatformIntegration::xcbConnection()->primaryScreen()->root();
175181

176182
//stage1: check if _NET_KDE_COMPOSITE_TOGGLING is supported

0 commit comments

Comments
 (0)