Commit 7029d9c5 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Move XdgSurfaceClient::cleanGrouping() to WaylandClient

parent 08528492
......@@ -290,6 +290,21 @@ void WaylandClient::updateDepth()
}
}
void WaylandClient::cleanGrouping()
{
if (transientFor()) {
transientFor()->removeTransient(this);
}
for (auto it = transients().constBegin(); it != transients().constEnd();) {
if ((*it)->transientFor() == this) {
removeTransient(*it);
it = transients().constBegin(); // restart, just in case something more has changed with the list
} else {
++it;
}
}
}
bool WaylandClient::isShown(bool shaded_is_shown) const
{
Q_UNUSED(shaded_is_shown)
......
......@@ -61,6 +61,8 @@ protected:
void doSetActive() override;
void updateCaption() override;
void cleanGrouping();
virtual void requestGeometry(const QRect &rect);
virtual void updateGeometry(const QRect &rect);
......
......@@ -381,21 +381,6 @@ void XdgSurfaceClient::setVirtualKeyboardGeometry(const QRect &geo)
setFrameGeometry(newWindowGeometry);
}
void XdgSurfaceClient::cleanGrouping()
{
if (transientFor()) {
transientFor()->removeTransient(this);
}
for (auto it = transients().constBegin(); it != transients().constEnd();) {
if ((*it)->transientFor() == this) {
removeTransient(*it);
it = transients().constBegin(); // restart, just in case something more has changed with the list
} else {
++it;
}
}
}
void XdgSurfaceClient::cleanTabBox()
{
#ifdef KWIN_BUILD_TABBOX
......
......@@ -85,7 +85,6 @@ private:
void resetHaveNextWindowGeometry();
QRect adjustMoveResizeGeometry(const QRect &rect) const;
void updateGeometryRestoreHack();
void cleanGrouping();
void cleanTabBox();
KWaylandServer::XdgSurfaceInterface *m_shellSurface;
......
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