[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.
This commit is contained in:
parent
9bc65e8151
commit
e02fe34e17
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue