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

Commit 1732be6a authored by Harry Cutts's avatar Harry Cutts
Browse files

GestureConverter: initialize mThreeFingerTapShortcutEnabled

While it looks like this was being consistently initialized by
TouchpadInputMapper::reconfigure during real-world usage, in tests it
wasn't always being initialized, leading to a ubsan error about it
having an invalid value when I was working on adding some new tests:

    .../GestureConverter.cpp:276:9: runtime error: load of value 190,
    which is not a valid value for type 'bool'

Test: m
Test: run tests defined in subsequent CLs
Bug: 372571823
Flag: EXEMPT bug fix
Change-Id: I44798c35c38c2cb912a995002c6ee325d7bda167
parent 94b29e54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ private:
    const bool mEnableNoFocusChange;
    bool mEnableSystemGestures{true};

    bool mThreeFingerTapShortcutEnabled;
    bool mThreeFingerTapShortcutEnabled{false};

    std::optional<ui::LogicalDisplayId> mDisplayId;
    FloatRect mBoundsInLogicalDisplay{};