We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0f5f18 commit 3d6ffb7Copy full SHA for 3d6ffb7
src/qmltypes/colorpickeritem.cpp
@@ -51,9 +51,11 @@ ColorPickerItem::ColorPickerItem(QObject *parent)
51
void ColorPickerItem::screenSelected(const QRect &rect)
52
{
53
m_selectedRect = rect;
54
+#ifdef Q_OS_LINUX
55
if (m_selector.useDBus())
56
QTimer::singleShot(0, this, &ColorPickerItem::grabColorDBus);
57
else
58
+#endif
59
// Give the frame buffer time to clear the selector window before
60
// grabbing the color.
61
QTimer::singleShot(200, this, &ColorPickerItem::grabColor);
0 commit comments