Commit e02fe34e authored by David Edmundson's avatar David Edmundson Committed by David Edmundson
Browse files

[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.
parent 9bc65e81
......@@ -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
......
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