Commit c58ea3e8 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 9cf51bb1
......@@ -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)
Markdown is supported
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