mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 19:50:25 +01:00
read-only mirror of https://gitlab.freedesktop.org/libinput/libinput
Having parantheses around tablet_has_status() is completely appropriate, but not for setting/unsetting a status. There's no legitimate reason we'd ever be checking the return value of tablet_(un)set_status() since it already stores it's result in a variable. As such, having it expand with parantheses around it means that if it's accidentally used in a conditional instead of tablet_has_status() our compiler won't throw any sort of warning. And the subtle differences between tablet_has_status() and tablet_set_status() are very easy to miss when trying to debug this. Removing the parantheses causes gcc to warn if the function is used as a conditional unintentionally. Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
|---|---|---|
| doc | ||
| include/linux | ||
| m4 | ||
| src | ||
| test | ||
| tools | ||
| .gitignore | ||
| autogen.sh | ||
| configure.ac | ||
| COPYING | ||
| Makefile.am | ||
| README | ||
libinput libinput is a library that handles input devices for display servers and other applications that need to directly deal with input devices. It provides device detection, device handling, input device event processing and abstraction so minimize the amount of custom input code the user of libinput need to provide the common set of functionality that users expect. Input event processing includes scaling touch coordinates, generating pointer events from touchpads, pointer acceleration, etc. libinput originates from weston, the Wayland reference compositor. The source code of libinput can be found at: http://cgit.freedesktop.org/wayland/libinput For more information, visit: http://www.freedesktop.org/wiki/Software/libinput/