规范任务栏代码,增加代码整洁度和安全性

Log: 规范任务栏模块代码
Task: https://pms.uniontech.com/task-view-150885.html
Influence: 无
Change-Id: I385fbb71cf4c1408ffd4c6684128b412a187ab28
This commit is contained in:
weizhixiang
2022-06-17 13:21:30 +08:00
parent e9e79e3ac9
commit e557f374c5
5 changed files with 16 additions and 14 deletions

View File

@ -496,7 +496,9 @@ WMClass XCBUtils::getWMClass(XWindow xid)
if (reply.instance_name)
ret.instanceName.assign(reply.instance_name);
xcb_icccm_get_wm_class_reply_wipe(&reply);
if (reply.class_name || reply.instance_name) {
xcb_icccm_get_wm_class_reply_wipe(&reply);
}
return ret;
}