sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 2b41d26b63fac8fd10b8c58e739addb7dfc98080
parent 7a1c8c2939c8581bb47323513b91a94aebf62b36
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed,  2 Dec 2015 16:08:26 -0500

Merge pull request #294 from christophgysin/match

Fix using last output config if none matched
Diffstat:
Msway/container.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sway/container.c b/sway/container.c @@ -82,13 +82,15 @@ swayc_t *new_output(wlc_handle handle) { struct output_config *oc = NULL; int i; for (i = 0; i < config->output_configs->length; ++i) { - oc = config->output_configs->items[i]; - if (strcasecmp(name, oc->name) == 0) { + struct output_config *cur = config->output_configs->items[i]; + if (strcasecmp(name, cur->name) == 0) { sway_log(L_DEBUG, "Matched output config for %s", name); + oc = cur; break; } - if (strcasecmp("*", oc->name) == 0) { + if (strcasecmp("*", cur->name) == 0) { sway_log(L_DEBUG, "Matched wildcard output config for %s", name); + oc = cur; break; } }