seat fallback config

This commit is contained in:
Tony Crisci 2017-12-17 10:39:22 -05:00
parent e27eff8a29
commit 88bcd43ebf
9 changed files with 105 additions and 31 deletions

View file

@ -17,6 +17,7 @@ struct seat_config *new_seat_config(const char* name) {
return NULL;
}
seat->fallback = -1;
seat->attachments = create_list();
if (!sway_assert(seat->attachments,
"could not allocate seat attachments list")) {
@ -66,6 +67,10 @@ void merge_seat_config(struct seat_config *dest, struct seat_config *source) {
dest->name = strdup(source->name);
}
if (source->fallback != -1) {
dest->fallback = source->fallback;
}
for (int i = 0; i < source->attachments->length; ++i) {
struct seat_attachment_config *source_attachment =
source->attachments->items[i];