backends/wayland: Don't rearrange outputs every time the window is resized
It makes it very hard to debug any use-case that isn't a strip of outputs and even then, we should have other mechanisms to arrange outputs properly (i.e. through kscreen).
This commit is contained in:
parent
5490b00117
commit
7b933abc0f
2 changed files with 0 additions and 19 deletions
|
@ -760,18 +760,6 @@ void WaylandBackend::initConnection()
|
||||||
m_connectionThreadObject->initConnection();
|
m_connectionThreadObject->initConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaylandBackend::updateScreenSize(WaylandOutput *output)
|
|
||||||
{
|
|
||||||
auto it = std::find(m_outputs.constBegin(), m_outputs.constEnd(), output);
|
|
||||||
|
|
||||||
int nextLogicalPosition = output->geometry().topRight().x();
|
|
||||||
while (++it != m_outputs.constEnd()) {
|
|
||||||
const QRect geo = (*it)->geometry();
|
|
||||||
(*it)->setGeometry(QPoint(nextLogicalPosition, 0), geo.size());
|
|
||||||
nextLogicalPosition = geo.topRight().x();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
KWayland::Client::ServerSideDecorationManager *WaylandBackend::ssdManager()
|
KWayland::Client::ServerSideDecorationManager *WaylandBackend::ssdManager()
|
||||||
{
|
{
|
||||||
if (!m_ssdManager) {
|
if (!m_ssdManager) {
|
||||||
|
@ -835,12 +823,6 @@ WaylandOutput *WaylandBackend::createOutput(const QString &name, const QPoint &p
|
||||||
}
|
}
|
||||||
|
|
||||||
waylandOutput->init(position, size);
|
waylandOutput->init(position, size);
|
||||||
|
|
||||||
connect(waylandOutput, &WaylandOutput::sizeChanged, this, [this, waylandOutput](const QSize &size) {
|
|
||||||
Q_UNUSED(size)
|
|
||||||
updateScreenSize(waylandOutput);
|
|
||||||
Compositor::self()->scene()->addRepaintFull();
|
|
||||||
});
|
|
||||||
connect(waylandOutput, &WaylandOutput::frameRendered, this, [waylandOutput]() {
|
connect(waylandOutput, &WaylandOutput::frameRendered, this, [waylandOutput]() {
|
||||||
waylandOutput->resetRendered();
|
waylandOutput->resetRendered();
|
||||||
|
|
||||||
|
|
|
@ -329,7 +329,6 @@ private:
|
||||||
void createOutputs();
|
void createOutputs();
|
||||||
void destroyOutputs();
|
void destroyOutputs();
|
||||||
|
|
||||||
void updateScreenSize(WaylandOutput *output);
|
|
||||||
WaylandOutput *createOutput(const QString &name, const QPoint &position, const QSize &size);
|
WaylandOutput *createOutput(const QString &name, const QPoint &position, const QSize &size);
|
||||||
|
|
||||||
Session *m_session;
|
Session *m_session;
|
||||||
|
|
Loading…
Reference in a new issue