Add safety check for recursive transient for
An AbstractClient cannot be transient for itself.
This commit is contained in:
parent
d25c465211
commit
9988fa9d74
1 changed files with 4 additions and 0 deletions
|
@ -886,6 +886,10 @@ bool AbstractClient::performMouseCommand(Options::MouseCommand cmd, const QPoint
|
|||
|
||||
void AbstractClient::setTransientFor(AbstractClient *transientFor)
|
||||
{
|
||||
if (transientFor == this) {
|
||||
// cannot be transient for one self
|
||||
return;
|
||||
}
|
||||
if (m_transientFor == transientFor) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue