[platforms/virtual] Support setting random screen geometries
A signal is added to the VirtualBackend to change all screen geometries. This can be used from auto tests to change the screens. But it's not yet correctly reflected in other areas. E.g. not forwarded to Wayland Output, etc.
This commit is contained in:
parent
81b81f43df
commit
d0a6aa0836
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,13 @@ void VirtualScreens::init()
|
|||
KWin::Screens::init();
|
||||
connect(m_backend, &VirtualBackend::sizeChanged,
|
||||
this, &VirtualScreens::startChangedTimer);
|
||||
connect(m_backend, &VirtualBackend::outputGeometriesChanged, this,
|
||||
[this] (const QVector<QRect> &geometries) {
|
||||
// TODO: update Wayland Output
|
||||
m_geometries = geometries;
|
||||
emit changed();
|
||||
}
|
||||
);
|
||||
updateCount();
|
||||
emit changed();
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@ public:
|
|||
|
||||
Q_SIGNALS:
|
||||
void sizeChanged();
|
||||
void outputGeometriesChanged(const QVector<QRect> &geometries);
|
||||
|
||||
private:
|
||||
QSize m_size;
|
||||
|
|
Loading…
Reference in a new issue