Skip to content
Snippets Groups Projects
Commit 657a1732 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Use std::optional for active pointer id

The active pointer id is not always valid. Rather than using a magic
value for it (-1), let's use std::optional.

Some other fixes:
- convert to enum class, for better type safety / switch checking
- ident switch statements

It's necessary to ident switch statements to avoid weird clang-format
problems when changing code that follows those sections.

Bug: 167946721
Test: m libinput_tests && $ANDROID_HOST_OUT/nativetest64/libinput_tests/libinput_tests
Change-Id: I6b78301e2c1d2fba1a789fa9491f7d6ab8b37d02
parent 6e85d515
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment