Move XdgSurfaceClient::cleanGrouping() to WaylandClient

master
Vlad Zahorodnii 2020-08-19 11:01:33 +03:00
parent 085284921a
commit 7029d9c57c
4 changed files with 17 additions and 16 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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

View File

@ -85,7 +85,6 @@ private:
void resetHaveNextWindowGeometry();
QRect adjustMoveResizeGeometry(const QRect &rect) const;
void updateGeometryRestoreHack();
void cleanGrouping();
void cleanTabBox();
KWaylandServer::XdgSurfaceInterface *m_shellSurface;