diff --git a/src/effects/colorpicker/colorpicker.cpp b/src/effects/colorpicker/colorpicker.cpp index 088f68ed9d..fcd19008ce 100644 --- a/src/effects/colorpicker/colorpicker.cpp +++ b/src/effects/colorpicker/colorpicker.cpp @@ -52,13 +52,7 @@ ColorPickerEffect::~ColorPickerEffect() = default; void ColorPickerEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData &data) { - m_paintedScreen = data.screen(); effects->paintScreen(mask, region, data); -} - -void ColorPickerEffect::postPaintScreen() -{ - effects->postPaintScreen(); if (m_scheduledPosition != QPoint(-1, -1) && effects->renderTargetRect().contains(m_scheduledPosition)) { uint8_t data[3]; diff --git a/src/effects/colorpicker/colorpicker.h b/src/effects/colorpicker/colorpicker.h index 1be048d74b..2f6f73c40a 100644 --- a/src/effects/colorpicker/colorpicker.h +++ b/src/effects/colorpicker/colorpicker.h @@ -27,11 +27,10 @@ public: ColorPickerEffect(); ~ColorPickerEffect() override; void paintScreen(int mask, const QRegion ®ion, ScreenPaintData &data) override; - void postPaintScreen() override; bool isActive() const override; int requestedEffectChainPosition() const override { - return 50; + return 0; } static bool supported(); @@ -44,7 +43,6 @@ private: void hideInfoMessage(); QDBusMessage m_replyMessage; - EffectScreen *m_paintedScreen = nullptr; QPoint m_scheduledPosition; bool m_picking = false; };