diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index e9785aba..bb9142c0 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -261,6 +261,14 @@ bool read_config(FILE *file, bool is_active) { | |||
261 | return success; | 261 | return success; |
262 | } | 262 | } |
263 | 263 | ||
264 | int output_name_cmp(const void *item, const void *data) | ||
265 | { | ||
266 | const struct output_config *output = item; | ||
267 | const char *name = data; | ||
268 | |||
269 | return strcmp(output->name, name); | ||
270 | } | ||
271 | |||
264 | void apply_output_config(struct output_config *oc, swayc_t *output) { | 272 | void apply_output_config(struct output_config *oc, swayc_t *output) { |
265 | if (oc && oc->width > 0 && oc->height > 0) { | 273 | if (oc && oc->width > 0 && oc->height > 0) { |
266 | output->width = oc->width; | 274 | output->width = oc->width; |