Fix tablet_output_name key for config

This commit is contained in:
rockerBOO 2025-09-24 23:31:38 -04:00
parent 6971b00e1b
commit 500aa97f3c
No known key found for this signature in database
GPG key ID: 0D4EAF00DCABC97B
2 changed files with 3 additions and 1 deletions

View file

@ -1985,7 +1985,7 @@ void parse_config_line(Config *config, const char *line) {
} else if (strncmp(key, "source", 6) == 0) {
parse_config_file(config, value);
} else if (strcmp(key, "tablet_output") == 0) {
} else if (strcmp(key, "tablet_output_name") == 0) {
if (config->tablet_output_name) {
free(config->tablet_output_name);
}

View file

@ -56,6 +56,8 @@ void createtablet(struct wlr_input_device *device) {
wlr_log(WLR_INFO, "Mapping input to output for device: %s", config.tablet_output_name);
wlr_cursor_map_input_to_output(cursor, device,
target_monitor->wlr_output);
} else {
wlr_log(WLR_WARN, "No monitor found with name: %s", config.tablet_output_name);
}
}
}