Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ff6e9c3b authored by Roman Gilg's avatar Roman Gilg

Define ShellClient debug output

Summary:
Add a debug format for ShellClients, otherwise the output is always
empty. Also add the nospace qualifier to ShellClient's and Client's
debug output to present it correctly.

Test Plan: Manually.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15560
parent 57df948c
......@@ -1772,6 +1772,7 @@ void Client::updateAllowedActions(bool force)
void Client::debug(QDebug& stream) const
{
stream.nospace();
print<QDebug>(stream);
}
......
......@@ -689,7 +689,7 @@ inline bool Client::hiddenPreview() const
template <typename T>
inline void Client::print(T &stream) const
{
stream << "\'ID:" << window() << ";WMCLASS:" << resourceClass() << ":"
stream << "\'Client:" << window() << ";WMCLASS:" << resourceClass() << ":"
<< resourceName() << ";Caption:" << caption() << "\'";
}
......
......@@ -425,8 +425,9 @@ QSize ShellClient::clientSize() const
void ShellClient::debug(QDebug &stream) const
{
// TODO: implement
Q_UNUSED(stream)
stream.nospace();
stream << "\'ShellClient:" << surface() << ";WMCLASS:" << resourceClass() << ":"
<< resourceName() << ";Caption:" << caption() << "\'";
}
Layer ShellClient::layerForDock() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment