Move XdgSurfaceClient::cleanGrouping() to WaylandClient
parent
085284921a
commit
7029d9c57c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue