mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-06 06:46:54 -04:00
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:
parent
92ed929a3c
commit
8edd0af80c
3 changed files with 38 additions and 0 deletions
11
src/mango.c
11
src/mango.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue