diff options
Diffstat (limited to 'sway/config/seat.c')
-rw-r--r-- | sway/config/seat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sway/config/seat.c b/sway/config/seat.c index d2401162..6c916727 100644 --- a/sway/config/seat.c +++ b/sway/config/seat.c | |||
@@ -1,4 +1,5 @@ | |||
1 | #define _POSIX_C_SOURCE 200809L | 1 | #define _POSIX_C_SOURCE 200809L |
2 | #include <limits.h> | ||
2 | #include <stdlib.h> | 3 | #include <stdlib.h> |
3 | #include <string.h> | 4 | #include <string.h> |
4 | #include "sway/config.h" | 5 | #include "sway/config.h" |
@@ -17,6 +18,8 @@ struct seat_config *new_seat_config(const char* name) { | |||
17 | return NULL; | 18 | return NULL; |
18 | } | 19 | } |
19 | 20 | ||
21 | seat->idle_inhibit_sources = seat->idle_wake_sources = UINT32_MAX; | ||
22 | |||
20 | seat->fallback = -1; | 23 | seat->fallback = -1; |
21 | seat->attachments = create_list(); | 24 | seat->attachments = create_list(); |
22 | if (!sway_assert(seat->attachments, | 25 | if (!sway_assert(seat->attachments, |
@@ -160,6 +163,14 @@ void merge_seat_config(struct seat_config *dest, struct seat_config *source) { | |||
160 | dest->xcursor_theme.name = strdup(source->xcursor_theme.name); | 163 | dest->xcursor_theme.name = strdup(source->xcursor_theme.name); |
161 | dest->xcursor_theme.size = source->xcursor_theme.size; | 164 | dest->xcursor_theme.size = source->xcursor_theme.size; |
162 | } | 165 | } |
166 | |||
167 | if (source->idle_inhibit_sources != UINT32_MAX) { | ||
168 | dest->idle_inhibit_sources = source->idle_inhibit_sources; | ||
169 | } | ||
170 | |||
171 | if (source->idle_wake_sources != UINT32_MAX) { | ||
172 | dest->idle_wake_sources = source->idle_wake_sources; | ||
173 | } | ||
163 | } | 174 | } |
164 | 175 | ||
165 | struct seat_config *copy_seat_config(struct seat_config *seat) { | 176 | struct seat_config *copy_seat_config(struct seat_config *seat) { |