Merge pull request #1574 from acrisci/config-refactor

Command criteria
This commit is contained in:
emersion 2018-01-22 01:16:23 +01:00 committed by GitHub
commit 0c58673c6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 840 additions and 52 deletions

View file

@ -372,3 +372,14 @@ void sway_input_manager_configure_xcursor(struct sway_input_manager *input) {
sway_seat_configure_xcursor(seat);
}
}
struct sway_seat *sway_input_manager_get_default_seat(
struct sway_input_manager *input) {
struct sway_seat *seat = NULL;
wl_list_for_each(seat, &input->seats, link) {
if (strcmp(seat->wlr_seat->name, "seat0") == 0) {
return seat;
}
}
return seat;
}