wayland: Rename SurfaceInterface::preferredScale to preferredBufferScale
This is to match the wording in the core spec.
This commit is contained in:
parent
53d19fbb9a
commit
cad72753f0
5 changed files with 11 additions and 11 deletions
|
@ -49,7 +49,7 @@ FractionalScaleV1Interface::FractionalScaleV1Interface(SurfaceInterface *surface
|
|||
{
|
||||
SurfaceInterfacePrivate *surfacePrivate = SurfaceInterfacePrivate::get(surface);
|
||||
surfacePrivate->fractionalScaleExtension = this;
|
||||
setPreferredScale(surfacePrivate->preferredScale);
|
||||
setPreferredScale(surfacePrivate->preferredBufferScale);
|
||||
}
|
||||
|
||||
FractionalScaleV1Interface::~FractionalScaleV1Interface()
|
||||
|
|
|
@ -73,7 +73,7 @@ void SurfaceInterfacePrivate::addChild(SubSurfaceInterface *child)
|
|||
cached.above.append(child);
|
||||
current.above.append(child);
|
||||
child->surface()->setOutputs(outputs);
|
||||
child->surface()->setPreferredScale(preferredScale);
|
||||
child->surface()->setPreferredBufferScale(preferredBufferScale);
|
||||
|
||||
Q_EMIT q->childSubSurfaceAdded(child);
|
||||
Q_EMIT q->childSubSurfacesChanged();
|
||||
|
@ -1109,21 +1109,21 @@ PresentationHint SurfaceInterface::presentationHint() const
|
|||
return d->current.presentationHint;
|
||||
}
|
||||
|
||||
void SurfaceInterface::setPreferredScale(qreal scale)
|
||||
void SurfaceInterface::setPreferredBufferScale(qreal scale)
|
||||
{
|
||||
if (scale == d->preferredScale) {
|
||||
if (scale == d->preferredBufferScale) {
|
||||
return;
|
||||
}
|
||||
d->preferredScale = scale;
|
||||
d->preferredBufferScale = scale;
|
||||
|
||||
if (d->fractionalScaleExtension) {
|
||||
d->fractionalScaleExtension->setPreferredScale(scale);
|
||||
}
|
||||
for (auto child : qAsConst(d->current.below)) {
|
||||
child->surface()->setPreferredScale(scale);
|
||||
child->surface()->setPreferredBufferScale(scale);
|
||||
}
|
||||
for (auto child : qAsConst(d->current.above)) {
|
||||
child->surface()->setPreferredScale(scale);
|
||||
child->surface()->setPreferredBufferScale(scale);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -354,10 +354,10 @@ public:
|
|||
PresentationHint presentationHint() const;
|
||||
|
||||
/**
|
||||
* Sets a preferred scale that clients should provide buffers in
|
||||
* Sets a preferred buffer scale that clients should provide buffers in
|
||||
* @param scale
|
||||
*/
|
||||
void setPreferredScale(qreal scale);
|
||||
void setPreferredBufferScale(qreal scale);
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
|
|
|
@ -132,7 +132,7 @@ public:
|
|||
qreal pendingScaleOverride = 1.;
|
||||
|
||||
QVector<OutputInterface *> outputs;
|
||||
qreal preferredScale = 1.0;
|
||||
qreal preferredBufferScale = 1.0;
|
||||
|
||||
LockedPointerV1Interface *lockedPointer = nullptr;
|
||||
ConfinedPointerV1Interface *confinedPointer = nullptr;
|
||||
|
|
|
@ -160,7 +160,7 @@ void WaylandWindow::updateClientOutputs()
|
|||
}
|
||||
surface()->setOutputs(waylandServer()->display()->outputsIntersecting(frameGeometry().toAlignedRect()));
|
||||
if (output()) {
|
||||
surface()->setPreferredScale(output()->scale());
|
||||
surface()->setPreferredBufferScale(output()->scale());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue