diff options
Diffstat (limited to 'sway/tree/output.c')
-rw-r--r-- | sway/tree/output.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sway/tree/output.c b/sway/tree/output.c index 227d487c..1202ba3c 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c | |||
@@ -267,36 +267,6 @@ void output_begin_destroy(struct sway_output *output) { | |||
267 | output->wlr_output = NULL; | 267 | output->wlr_output = NULL; |
268 | } | 268 | } |
269 | 269 | ||
270 | struct output_config *output_find_config(struct sway_output *output) { | ||
271 | const char *name = output->wlr_output->name; | ||
272 | char identifier[128]; | ||
273 | output_get_identifier(identifier, sizeof(identifier), output); | ||
274 | |||
275 | struct output_config *oc = NULL, *all = NULL; | ||
276 | for (int i = 0; i < config->output_configs->length; ++i) { | ||
277 | struct output_config *cur = config->output_configs->items[i]; | ||
278 | |||
279 | if (strcasecmp(name, cur->name) == 0 || | ||
280 | strcasecmp(identifier, cur->name) == 0) { | ||
281 | sway_log(SWAY_DEBUG, "Matched output config for %s", name); | ||
282 | oc = cur; | ||
283 | } | ||
284 | if (strcasecmp("*", cur->name) == 0) { | ||
285 | sway_log(SWAY_DEBUG, "Matched wildcard output config for %s", name); | ||
286 | all = cur; | ||
287 | } | ||
288 | |||
289 | if (oc && all) { | ||
290 | break; | ||
291 | } | ||
292 | } | ||
293 | if (!oc) { | ||
294 | oc = all; | ||
295 | } | ||
296 | |||
297 | return oc; | ||
298 | } | ||
299 | |||
300 | struct sway_output *output_from_wlr_output(struct wlr_output *output) { | 270 | struct sway_output *output_from_wlr_output(struct wlr_output *output) { |
301 | return output->data; | 271 | return output->data; |
302 | } | 272 | } |