mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Add touchpad device type
It is nice to have finer granularity for device types to allow for configurations such as using `naturalScroll` on touchpads, but not on regular pointer devices such as mice.
This commit is contained in:
parent
e3cd189769
commit
6faee17d20
6 changed files with 30 additions and 15 deletions
|
|
@ -460,6 +460,7 @@ fill_libinput_category(char *nodename, char *content)
|
|||
|
||||
if (!strcmp(nodename, "category")) {
|
||||
if (!strcmp(content, "touch")
|
||||
|| !strcmp(content, "touchpad")
|
||||
|| !strcmp(content, "non-touch")
|
||||
|| !strcmp(content, "default")) {
|
||||
current_libinput_category->type = get_device_type(content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue