Add mouse emulation for touch devices (#2277)

This commit is contained in:
Simon Long 2024-10-29 19:22:01 +00:00 committed by GitHub
parent 4d3efb4339
commit 45a9bd95e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 24 additions and 3 deletions

View file

@ -633,6 +633,8 @@ fill_touch(char *nodename, char *content)
current_touch->device_name = xstrdup(content);
} else if (!strcasecmp(nodename, "mapToOutput.touch")) {
current_touch->output_name = xstrdup(content);
} else if (!strcasecmp(nodename, "mouseEmulation.touch")) {
set_bool(content, &current_touch->force_mouse_emulation);
} else {
wlr_log(WLR_ERROR, "Unexpected data in touch parser: %s=\"%s\"",
nodename, content);