mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
seat fallback config
This commit is contained in:
parent
e27eff8a29
commit
88bcd43ebf
9 changed files with 105 additions and 31 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue