Skip to content

Commit

Permalink
fix compile error not on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jan 9, 2025
1 parent f0f5f18 commit 3d6ffb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qmltypes/colorpickeritem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3d6ffb7

Please sign in to comment.