diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-17 10:39:22 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-17 10:39:22 -0500 |
commit | 88bcd43ebf59cfa03a9e9a158c6f7a258c1f7db2 (patch) | |
tree | 4c2b9321ab9d5f7a9aeed35c7d6826c5da4e496f /sway/config | |
parent | e27eff8a29abd74448322ae78baa99a489e43620 (diff) | |
download | sway-88bcd43ebf59cfa03a9e9a158c6f7a258c1f7db2.tar.xz |
seat fallback config
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/seat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/config/seat.c b/sway/config/seat.c index 3a2fdaa6..4c9e8d0d 100644 --- a/sway/config/seat.c +++ b/sway/config/seat.c @@ -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]; |