sway

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

commit afac6ced6e127d83503b39102eb8e0db6a9b1c13
parent 07f4c1e3a96f57aa7dcc2ea309a55ab5875b6fda
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Sat, 19 Jan 2019 11:04:42 -0500

apply_output_config: remove output_i

output_i was used in apply_output_config when swaybar used wl_output
index numbers instead of xdg-output names. This is no longer needed.

Diffstat:
Msway/config/output.c | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/sway/config/output.c b/sway/config/output.c @@ -234,13 +234,6 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) { wlr_output_layout_add_auto(root->output_layout, wlr_output); } - int output_i; - for (output_i = 0; output_i < root->outputs->length; ++output_i) { - if (root->outputs->items[output_i] == output) { - break; - } - } - if (output->bg_pid != 0) { terminate_swaybg(output->bg_pid); }