diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-28 12:51:59 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-14 18:34:54 +0200 |
commit | fcec5817483ba279b714acf6d81f5d7a3688b092 (patch) | |
tree | c0ebb0ab0b6c2f3797fa1e34dcb344fe12028dc1 /sway/desktop/output.c | |
parent | Use all_output_by_name_or_id() in merge_id_on_name() (diff) | |
download | sway-fcec5817483ba279b714acf6d81f5d7a3688b092.tar.gz sway-fcec5817483ba279b714acf6d81f5d7a3688b092.tar.zst sway-fcec5817483ba279b714acf6d81f5d7a3688b092.zip |
Use output_match_name_or_id() in apply_output_config_to_outputs()
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index fe3cdaf1..2255b551 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -36,8 +36,12 @@ | |||
36 | #include <wlr/types/wlr_drm_lease_v1.h> | 36 | #include <wlr/types/wlr_drm_lease_v1.h> |
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | static bool output_match_name_or_id(struct sway_output *output, | 39 | bool output_match_name_or_id(struct sway_output *output, |
40 | const char *name_or_id) { | 40 | const char *name_or_id) { |
41 | if (strcmp(name_or_id, "*") == 0) { | ||
42 | return true; | ||
43 | } | ||
44 | |||
41 | char identifier[128]; | 45 | char identifier[128]; |
42 | output_get_identifier(identifier, sizeof(identifier), output); | 46 | output_get_identifier(identifier, sizeof(identifier), output); |
43 | return strcasecmp(identifier, name_or_id) == 0 | 47 | return strcasecmp(identifier, name_or_id) == 0 |