Add a signal Toplevel::windowHidden
Signal is connected in ScriptingModel together with windowShown.
This commit is contained in:
parent
ff2590ac52
commit
11e0e75fb3
3 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -538,6 +538,7 @@ void ShellClient::unmap()
|
|||
ready_for_painting = false;
|
||||
addWorkspaceRepaint(visibleRect());
|
||||
workspace()->clientHidden(this);
|
||||
emit windowHidden(this);
|
||||
}
|
||||
|
||||
void ShellClient::installPlasmaShellSurface(PlasmaShellSurfaceInterface *surface)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue