Commit 0dffc569 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Notify subsurfaces about output changes

Otherwise they wouldn't notice and wouldn't update to the settings of
the new output, like the new output's scaling.
parent f91271b2
......@@ -83,6 +83,9 @@ void SurfaceInterfacePrivate::addChild(SubSurfaceInterface *child)
emit q->childSubSurfaceAdded(child);
emit q->subSurfaceTreeChanged();
QObject::connect(child, &SubSurfaceInterface::positionChanged, q, &SurfaceInterface::subSurfaceTreeChanged);
......@@ -850,6 +853,9 @@ void SurfaceInterface::setOutputs(const QVector<OutputInterface *> &outputs)
// TODO: send enter when the client binds the OutputInterface another time
d->outputs = outputs;
for (auto child : d->current.children) {
SurfaceInterface *SurfaceInterface::surfaceAt(const QPointF &position)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment