Expose the transientFor relationship to PlasmaWindowInterface
Test Plan: Compiles Reviewers: #kwin, #plasma_on_wayland, hein Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D1780
This commit is contained in:
parent
c9984094de
commit
aa215e12cc
1 changed files with 6 additions and 0 deletions
|
@ -681,6 +681,7 @@ void AbstractClient::setupWindowManagementInterface()
|
||||||
w->setResizable(isResizable());
|
w->setResizable(isResizable());
|
||||||
w->setMovable(isMovable());
|
w->setMovable(isMovable());
|
||||||
w->setVirtualDesktopChangeable(true); // FIXME Matches Client::actionSupported(), but both should be implemented.
|
w->setVirtualDesktopChangeable(true); // FIXME Matches Client::actionSupported(), but both should be implemented.
|
||||||
|
w->setParentWindow(transientFor() ? transientFor()->windowManagementInterface() : nullptr);
|
||||||
connect(this, &AbstractClient::skipTaskbarChanged, w,
|
connect(this, &AbstractClient::skipTaskbarChanged, w,
|
||||||
[w, this] {
|
[w, this] {
|
||||||
w->setSkipTaskbar(skipTaskbar());
|
w->setSkipTaskbar(skipTaskbar());
|
||||||
|
@ -721,6 +722,11 @@ void AbstractClient::setupWindowManagementInterface()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
connect(this, &AbstractClient::shadeChanged, w, [w, this] { w->setShaded(isShade()); });
|
connect(this, &AbstractClient::shadeChanged, w, [w, this] { w->setShaded(isShade()); });
|
||||||
|
connect(this, &AbstractClient::transientChanged, w,
|
||||||
|
[w, this] {
|
||||||
|
w->setParentWindow(transientFor() ? transientFor()->windowManagementInterface() : nullptr);
|
||||||
|
}
|
||||||
|
);
|
||||||
connect(w, &PlasmaWindowInterface::closeRequested, this, [this] { closeWindow(); });
|
connect(w, &PlasmaWindowInterface::closeRequested, this, [this] { closeWindow(); });
|
||||||
connect(w, &PlasmaWindowInterface::moveRequested, this,
|
connect(w, &PlasmaWindowInterface::moveRequested, this,
|
||||||
[this] {
|
[this] {
|
||||||
|
|
Loading…
Reference in a new issue