diff options
author | 2019-01-19 11:04:42 -0500 | |
---|---|---|
committer | 2019-01-19 17:28:26 +0100 | |
commit | afac6ced6e127d83503b39102eb8e0db6a9b1c13 (patch) | |
tree | 8821391114b9b3b65c60ff4d66da1a7b4bf4c64a /sway | |
parent | swaynag: fix XDG_CONFIG_HOME handling (diff) | |
download | sway-afac6ced6e127d83503b39102eb8e0db6a9b1c13.tar.gz sway-afac6ced6e127d83503b39102eb8e0db6a9b1c13.tar.zst sway-afac6ced6e127d83503b39102eb8e0db6a9b1c13.zip |
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 (limited to 'sway')
-rw-r--r-- | sway/config/output.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 6e504751..8f59c863 100644 --- 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) { | |||
234 | wlr_output_layout_add_auto(root->output_layout, wlr_output); | 234 | wlr_output_layout_add_auto(root->output_layout, wlr_output); |
235 | } | 235 | } |
236 | 236 | ||
237 | int output_i; | ||
238 | for (output_i = 0; output_i < root->outputs->length; ++output_i) { | ||
239 | if (root->outputs->items[output_i] == output) { | ||
240 | break; | ||
241 | } | ||
242 | } | ||
243 | |||
244 | if (output->bg_pid != 0) { | 237 | if (output->bg_pid != 0) { |
245 | terminate_swaybg(output->bg_pid); | 238 | terminate_swaybg(output->bg_pid); |
246 | } | 239 | } |