From 3d6ffb71587ba0d04ef4bcf06b5fc61f72cca79f Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Thu, 9 Jan 2025 13:09:53 -0800 Subject: [PATCH] fix compile error not on Linux --- src/qmltypes/colorpickeritem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qmltypes/colorpickeritem.cpp b/src/qmltypes/colorpickeritem.cpp index ab300d19e8..cd749ede13 100644 --- a/src/qmltypes/colorpickeritem.cpp +++ b/src/qmltypes/colorpickeritem.cpp @@ -51,9 +51,11 @@ ColorPickerItem::ColorPickerItem(QObject *parent) void ColorPickerItem::screenSelected(const QRect &rect) { m_selectedRect = rect; +#ifdef Q_OS_LINUX if (m_selector.useDBus()) QTimer::singleShot(0, this, &ColorPickerItem::grabColorDBus); else +#endif // Give the frame buffer time to clear the selector window before // grabbing the color. QTimer::singleShot(200, this, &ColorPickerItem::grabColor);