mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 17:01:29 +00:00
config: Use output_name_cmp instead of strcmp
Might as well use that function in case it needs handling special cases in the future.
This commit is contained in:
parent
7461473918
commit
289e5e793a
|
@ -615,7 +615,7 @@ void apply_output_config_to_outputs(struct output_config *oc) {
|
||||||
wl_list_for_each_safe(sway_output, tmp, &root->all_outputs, link) {
|
wl_list_for_each_safe(sway_output, tmp, &root->all_outputs, link) {
|
||||||
char *name = sway_output->wlr_output->name;
|
char *name = sway_output->wlr_output->name;
|
||||||
output_get_identifier(id, sizeof(id), sway_output);
|
output_get_identifier(id, sizeof(id), sway_output);
|
||||||
if (wildcard || !strcmp(name, oc->name) || !strcmp(id, oc->name)) {
|
if (wildcard || !output_name_cmp(oc, name) || !output_name_cmp(oc, id)) {
|
||||||
struct output_config *current = get_output_config(id, sway_output);
|
struct output_config *current = get_output_config(id, sway_output);
|
||||||
if (!current) {
|
if (!current) {
|
||||||
// No stored output config matched, apply oc directly
|
// No stored output config matched, apply oc directly
|
||||||
|
|
Loading…
Reference in a new issue