From 6cfee149ea93f3e567f345b2dd536dd285e939d6 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 18 Aug 2020 21:38:12 +0300 Subject: [PATCH] Move AbstractWaylandOutput::geometryChanged() to AbstractOutput On X11, this signal is never emitted because outputs get destroyed when the output layout changes. --- abstract_output.h | 6 ++++++ abstract_wayland_output.h | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/abstract_output.h b/abstract_output.h index db7b10385..090266dbf 100644 --- a/abstract_output.h +++ b/abstract_output.h @@ -164,6 +164,12 @@ public: /** Returns the resolution of the output. */ virtual QSize pixelSize() const = 0; +Q_SIGNALS: + /** + * This signal is emitted when the geometry of this output has changed. + */ + void geometryChanged(); + private: Q_DISABLE_COPY(AbstractOutput) }; diff --git a/abstract_wayland_output.h b/abstract_wayland_output.h index 634dcc553..b1e3be395 100644 --- a/abstract_wayland_output.h +++ b/abstract_wayland_output.h @@ -126,7 +126,6 @@ public: Q_SIGNALS: void modeChanged(); - void geometryChanged(); void outputChange(const QRegion &damagedRegion); protected: