Add a signal Toplevel::windowHidden

Signal is connected in ScriptingModel together with windowShown.
icc-effect-5.14.5
Martin Gräßlin 2015-06-10 17:45:59 +02:00
parent ff2590ac52
commit 11e0e75fb3
3 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,8 @@ void ClientLevel::setupClientConnections(AbstractClient *client)
connect(client, &AbstractClient::desktopChanged, this, check);
connect(client, &AbstractClient::screenChanged, this, check);
connect(client, &AbstractClient::activitiesChanged, this, check);
connect(client, &AbstractClient::windowHidden, this, check);
connect(client, &AbstractClient::windowShown, this, check);
}
void ClientLevel::checkClient(AbstractClient *client)

View File

@ -538,6 +538,7 @@ void ShellClient::unmap()
ready_for_painting = false;
addWorkspaceRepaint(visibleRect());
workspace()->clientHidden(this);
emit windowHidden(this);
}
void ShellClient::installPlasmaShellSurface(PlasmaShellSurfaceInterface *surface)

View File

@ -380,6 +380,7 @@ Q_SIGNALS:
void paddingChanged(KWin::Toplevel* toplevel, const QRect& old);
void windowClosed(KWin::Toplevel* toplevel, KWin::Deleted* deleted);
void windowShown(KWin::Toplevel* toplevel);
void windowHidden(KWin::Toplevel* toplevel);
/**
* Signal emitted when the window's shape state changed. That is if it did not have a shape
* and received one or if the shape was withdrawn. Think of Chromium enabling/disabling KWin's