fvogt added a comment.
Built and tested - works fine! I only added two rather nitpicky comments.
INLINE COMMENTS
> client.cpp:1428
> + if (reply.encoding == atoms->utf8_string) {
> + retVal = QString::fromUtf8(QByteArray(reply.name,
> reply.name_len));
> + } else if (reply.encoding == XCB_ATOM_STRING) {
Why not directly `QString::fromUtf8(reply.name, reply.name_len)` here? It would
save one unnecessary copy. Alternatively, `QByteArray::fromRawData(reply.name,
reply.name_len)`, but that's more verbose.
> client.cpp:1433
> + xcb_icccm_get_text_property_reply_wipe(&reply);
> + return retVal;
> + }
This omits the call to `QString::simplified` that is done in the old rev and
for the `info->name()` case. Intentional?
REPOSITORY
R108 KWin
REVISION DETAIL
https://phabricator.kde.org/D7046
To: graesslin, #kwin, #plasma
Cc: fvogt, broulik, plasma-devel, kwin, ZrenBot, progwolff, lesliezhai,
ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart, lukas