From 571b7e86a8ab6ec26fab86276798885b3d8d124b Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 21 Oct 2020 20:47:36 +0200 Subject: [PATCH] OutputDevice: only report the scale when scaleFChanged is emitted scaleChanged and scaleFChanged are emitted at the same time, there's no reason to send them twice. --- src/wayland/server/outputdevice_interface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wayland/server/outputdevice_interface.cpp b/src/wayland/server/outputdevice_interface.cpp index 362e49b6cc..125e0a0bd9 100644 --- a/src/wayland/server/outputdevice_interface.cpp +++ b/src/wayland/server/outputdevice_interface.cpp @@ -133,8 +133,7 @@ OutputDeviceInterface::OutputDeviceInterface(Display *display, QObject *parent) connect(this, &OutputDeviceInterface::globalPositionChanged, this, [d] { d->updateGeometry(); }); connect(this, &OutputDeviceInterface::modelChanged, this, [d] { d->updateGeometry(); }); connect(this, &OutputDeviceInterface::manufacturerChanged, this, [d] { d->updateGeometry(); }); - connect(this, &OutputDeviceInterface::scaleFChanged, this, [d] { d->updateScale(); }); - connect(this, &OutputDeviceInterface::scaleChanged, this, [d] { d->updateScale(); }); + connect(this, &OutputDeviceInterface::scaleFChanged, this, [d] { d->updateScale(); }); connect(this, &OutputDeviceInterface::colorCurvesChanged, this, [d] { d->updateColorCurves(); }); }