mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-04 06:46:38 -04:00
Fix tablet_output_name key for config
This commit is contained in:
parent
6971b00e1b
commit
500aa97f3c
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue