[wayland] Avoid debug recursion in XdgShellClients

QDebug& operator<<(QDebug& stream, TopLevel*)
calls TopLevel::debug(stream)

So our implementation has to provide something custom not call the base
class.

Debug here is loosely based on X11Client. It probably can be expanded on
in time, but at least it won't crash.
master
David Edmundson 2020-06-19 00:00:32 +01:00 committed by David Edmundson
parent 9bc65e8151
commit e02fe34e17
1 changed files with 2 additions and 2 deletions

View File

@ -676,7 +676,7 @@ XdgToplevelInterface *XdgToplevelClient::shellSurface() const
void XdgToplevelClient::debug(QDebug &stream) const
{
stream << this;
stream << "XdgTopLevel: " << resourceClass() << caption();
}
NET::WindowType XdgToplevelClient::windowType(bool direct, int supported_types) const
@ -1817,7 +1817,7 @@ XdgPopupClient::~XdgPopupClient()
void XdgPopupClient::debug(QDebug &stream) const
{
stream << this;
stream << "XdgPopup: transientFor:" << transientFor();
}
NET::WindowType XdgPopupClient::windowType(bool direct, int supported_types) const