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
icc-effect-5.17.5
Roman Gilg 2018-09-16 22:45:17 +02:00
parent 57df948ca1
commit ff6e9c3b92
3 changed files with 5 additions and 3 deletions

View File

@ -1772,6 +1772,7 @@ void Client::updateAllowedActions(bool force)
void Client::debug(QDebug& stream) const
{
stream.nospace();
print<QDebug>(stream);
}

View File

@ -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() << "\'";
}

View File

@ -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