diff --git a/apps/shared/cursor_view.h b/apps/shared/cursor_view.h index 4590950b2..c0f5c6062 100644 --- a/apps/shared/cursor_view.h +++ b/apps/shared/cursor_view.h @@ -1,11 +1,11 @@ #ifndef SHARED_CURSOR_VIEW_H #define SHARED_CURSOR_VIEW_H -#include +#include namespace Shared { -class CursorView : public View { +class CursorView : public TransparentView { public: virtual void setCursorFrame(KDRect frame, bool force) { View::setFrame(frame, force); } void drawRect(KDContext * ctx, KDRect rect) const override; diff --git a/apps/shared/round_cursor_view.cpp b/apps/shared/round_cursor_view.cpp index 5355f544b..ecc0fad09 100644 --- a/apps/shared/round_cursor_view.cpp +++ b/apps/shared/round_cursor_view.cpp @@ -49,6 +49,10 @@ void RoundCursorView::setCursorFrame(KDRect f, bool force) { CursorView::setCursorFrame(f, force); } +void RoundCursorView::markRectAsDirty(KDRect rect) { + View::markRectAsDirty(rect); +} + #ifdef GRAPH_CURSOR_SPEEDUP bool RoundCursorView::eraseCursorIfPossible() { if (!m_underneathPixelBufferLoaded) { diff --git a/apps/shared/round_cursor_view.h b/apps/shared/round_cursor_view.h index 001113406..eff1f93c3 100644 --- a/apps/shared/round_cursor_view.h +++ b/apps/shared/round_cursor_view.h @@ -24,6 +24,7 @@ public: void resetMemoization() const { m_underneathPixelBufferLoaded = false; } #endif private: + void markRectAsDirty(KDRect rect) override; #ifdef GRAPH_CURSOR_SPEEDUP bool eraseCursorIfPossible(); #endif