This commit is contained in:
Dave Lage 2025-09-26 18:03:38 +08:00 committed by GitHub
commit 220a37e851
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 40 additions and 0 deletions

View file

@ -5655,6 +5655,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;