Add map input to output to constrain tablet to a device. Add config.tablet_output_name for the monitor to attach to

This commit is contained in:
rockerBOO 2025-09-23 01:14:38 -04:00
parent 92ed929a3c
commit 8edd0af80c
No known key found for this signature in database
GPG key ID: 0D4EAF00DCABC97B
3 changed files with 38 additions and 0 deletions

View file

@ -5616,6 +5616,17 @@ static void setgeometrynotify(struct wl_listener *listener, void *data) {
}
#endif
static Monitor *find_monitor_by_name(const char *output_name) {
if (!output_name) return NULL;
Monitor *m;
wl_list_for_each(m, &mons, link) {
if (m->wlr_output && strcmp(m->wlr_output->name, output_name) == 0) {
return m;
}
}
return NULL;
}
int main(int argc, char *argv[]) {
char *startup_cmd = NULL;
int c;