Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 350896b5 authored by Arthur Hung's avatar Arthur Hung
Browse files

Fix mouse pointer not getting enlarged

When show taps enabled, the presentation would be
PRESENTATION_SPOT for drawing the spots. That would
ignore loadPointerIcon when reload resources.

Always load default icon when reload resources.

Bug: 115395392
Test: Enable show taps and use mouse,
      enabled large mouse pointer manually.

Change-Id: I74f2bf33c9046e8eaba7d284ca16366da6e3d221
parent 6a5cd884
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -759,11 +759,11 @@ void PointerController::fadeOutAndReleaseAllSpotsLocked() {

void PointerController::loadResourcesLocked() REQUIRES(mLock) {
    mPolicy->loadPointerResources(&mResources, mLocked.viewport.displayId);
    mPolicy->loadPointerIcon(&mLocked.pointerIcon, mLocked.viewport.displayId);

    if (mLocked.presentation == PRESENTATION_POINTER) {
    mLocked.additionalMouseResources.clear();
    mLocked.animationResources.clear();
        mPolicy->loadPointerIcon(&mLocked.pointerIcon, mLocked.viewport.displayId);
    if (mLocked.presentation == PRESENTATION_POINTER) {
        mPolicy->loadAdditionalMouseResources(&mLocked.additionalMouseResources,
                &mLocked.animationResources, mLocked.viewport.displayId);
    }