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/D15560icc-effect-5.17.5
parent
57df948ca1
commit
ff6e9c3b92
|
@ -1772,6 +1772,7 @@ void Client::updateAllowedActions(bool force)
|
|||
|
||||
void Client::debug(QDebug& stream) const
|
||||
{
|
||||
stream.nospace();
|
||||
print<QDebug>(stream);
|
||||
}
|
||||
|
||||
|
|
2
client.h
2
client.h
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue