Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 97069741 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix Advanced Color Selector on KDE

The events must be accepted, otherwise KDE decides that is "Empty Area"
and starts moving the whole Krita window. This is an oxygen "feature".
parent 8b8b55ab
......@@ -243,6 +243,7 @@ void KisColorSelector::mousePressEvent(QMouseEvent* e)
m_grabbingComponent=m_subComponent;
mouseEvent(e);
e->accept();
}
}
......@@ -251,6 +252,7 @@ void KisColorSelector::mouseMoveEvent(QMouseEvent* e)
KisColorSelectorBase::mouseMoveEvent(e);
mouseEvent(e);
e->accept();
}
void KisColorSelector::mouseReleaseEvent(QMouseEvent* e)
......@@ -269,6 +271,7 @@ void KisColorSelector::mouseReleaseEvent(QMouseEvent* e)
m_lastColorRole=Background;
commitColor(KoColor(m_currentColor, colorSpace()), m_lastColorRole);
e->accept();
}
m_grabbingComponent=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment